We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. to tools or bin
tools
bin
This will help people who are developing libraries using this parser, as well as trying to debug the behavior on a given file/snippet.
I didn't see any similar issues mentioned elsewhere in the issues, readme, or tools directory.
Currently, I'm using this snippet: https://gist.github.com/TysonAndre/3c0619efc9695ef9f2465f4a55e6e6ee Previously, I was using var_export(), which was several times longer.
» php dump.php "const X = 2*3+1;" Node\SourceFileNode statementList: Node\Statement\ConstDeclaration constKeyword: Token: ConstKeyword(111): "const" constElements: Node\DelimitedList\ConstElementList children: Node\ConstElement name: Token: Name(2): " X" equalsToken: Token: EqualsToken(238): " =" assignment: Node\Expression\BinaryExpression leftOperand: Node\Expression\BinaryExpression leftOperand: Node\NumericLiteral children: Token: IntegerLiteralToken(416): " 2" operator: Token: AsteriskToken(212): "*" rightOperand: Node\NumericLiteral children: Token: IntegerLiteralToken(416): "3" operator: Token: PlusToken(213): "+" rightOperand: Node\NumericLiteral children: Token: IntegerLiteralToken(416): "1" semicolon: Token: SemicolonToken(237): ";" endOfFileToken: Token: EndOfFileToken(1): ""
EDIT: I've moved that snippet to https://github.com/phan/phan/blob/master/internal/dump_fallback_ast.php
The text was updated successfully, but these errors were encountered:
Sort of related to what the syntax-visualizer does: https://github.com/Microsoft/tolerant-php-parser/tree/master/syntax-visualizer which is just running the parsed file through json_encode
json_encode
Sorry, something went wrong.
No branches or pull requests
E.g. to
tools
orbin
This will help people who are developing libraries using this parser, as well as trying to debug the behavior on a given file/snippet.
I didn't see any similar issues mentioned elsewhere in the issues, readme, or tools directory.
Currently, I'm using this snippet: https://gist.github.com/TysonAndre/3c0619efc9695ef9f2465f4a55e6e6ee
Previously, I was using var_export(), which was several times longer.
EDIT: I've moved that snippet to https://github.com/phan/phan/blob/master/internal/dump_fallback_ast.php
The text was updated successfully, but these errors were encountered: