Skip to content

Conversation

@philocalyst
Copy link

Currently missing

  • Error messaging has incorrect spans
  • Full serde support

src/main.rs Outdated

use maml::parser::parse_with_report;

fn main() {
Copy link
Contributor

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) {
Copy link
Contributor

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")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also \r\n.

}

None
}
Copy link
Contributor

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.

@philocalyst
Copy link
Author

Yep yep

@philocalyst
Copy link
Author

Yep...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants