srhickma / padd

Fast and Automatic Formatting of Context-Free Languages
Apache License 2.0
2 stars 2 forks source link

Add encoded parser implementation #161

Closed srhickma closed 5 years ago

srhickma commented 5 years ago

Adds a parser which encodes symbol strings as usize internally, which uses less memory and makes copying + comparison of symbols more efficient.

This pr also keeps a SimpleGrammar which does not use encoding, and is used internally for specification/pattern parsing, as well as testing.

Required by #156. Closes #32.