-
Notifications
You must be signed in to change notification settings - Fork 1
Bringing the crate up-to-date with spec version v0.1 #1
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
base: master
Are you sure you want to change the base?
Conversation
Drastically simplifies the parsing, and handles a lot of the optimizations that actually matter here
src/main.rs
Outdated
|
|
||
| use maml::parser::parse_with_report; | ||
|
|
||
| fn main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be a lib! CLI separatly.
src/main.rs
Outdated
| println!("{:#?}", value); | ||
|
|
||
| #[cfg(feature = "serde")] | ||
| if let Ok(json) = serde_json::to_string_pretty(&value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We defenetly do not want to pull serde_json as dependency.
src/tokenizer.rs
Outdated
| #[token(",")] | ||
| Comma, | ||
|
|
||
| #[token("\n")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also \r\n.
| } | ||
|
|
||
| None | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests will be nice.
|
Yep yep |
|
Yep... |
Currently missing