-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
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
Added the ability to dump the token stream or ast in bin. #278
Merged
Commits on Mar 17, 2020
-
Added the ability to dump the token stream or ast in bin.
The dump functionality works both for files and REPL. With --dump-tokens or -t for short it dumps the token stream to stdout and --dump-ast or -a for short to dump the ast to stdout. The dumping of tokens and ast is mutually exclusive. and when dumping it wont run the code.
Configuration menu - View commit details
-
Copy full SHA for 533726f - Browse repository at this point
Copy the full SHA 533726fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab83d6b - Browse repository at this point
Copy the full SHA ab83d6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ca6c26 - Browse repository at this point
Copy the full SHA 1ca6c26View commit details
Commits on Mar 18, 2020
-
Added a dynamic multi-format dumping of token stream and ast in bin.
- Changed the --dump-tokens and --dump-ast to be an optional argument that optionally takes a value of format type ([--opt=[val]]). - The default format for --dump-tokens and --dump-ast is Debug format which calls std::fmt::Debug. - Added Json and JsonMinified format for both dumps, use serde_json internally. - It is easy to support other format types, such as Toml with toml-rs for example.
Configuration menu - View commit details
-
Copy full SHA for 84d4105 - Browse repository at this point
Copy the full SHA 84d4105View commit details -
Made serde an optional dependency.
- Serde serialization and deserialization can be switched on by using the feature flag "serde-ast".
Configuration menu - View commit details
-
Copy full SHA for 8a34176 - Browse repository at this point
Copy the full SHA 8a34176View commit details -
Changed the JSON dumping format.
- Now Json dumping format prints the data in minefied JSON form by default. - Removed JsonMinified. - Added JsonPretty as a way to dump the data in pretty printed JSON format.
Configuration menu - View commit details
-
Copy full SHA for 96c74ae - Browse repository at this point
Copy the full SHA 96c74aeView commit details
Commits on Mar 20, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 019f9bd - Browse repository at this point
Copy the full SHA 019f9bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67231e0 - Browse repository at this point
Copy the full SHA 67231e0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.