nerdsupremacist / Syntax

Write value-driven parsers quickly in Swift with an intuitive SwiftUI-like DSL
https://quickbirdstudios.com/blog/swift-string-parse/
MIT License
147 stars 10 forks source link

example: comment implementation #11

Open sigil66 opened 1 year ago

sigil66 commented 1 year ago

I was able to rapidly make progress with Syntax for grammars that did not include comments. I think this can be implemented with the library as it stands however it would seem an implementation would be somewhat painful?

An example or helpers that allow for the parsing of comment blocks that can be ignored during deserialization would be helpful. Perhaps a JSON5 parser?