ptal / oak

A typed parser generator embedded in Rust code for Parsing Expression Grammars
Apache License 2.0
142 stars 14 forks source link

Generalized string literals (bytes and raw sequences) #91

Closed ptal closed 3 years ago

ptal commented 8 years ago

Accepts string literal of the form b"xxx" and r##"\n\tblabla"## as described in the rust reference.

zyvitski commented 5 years ago

I was just about to open another issue on this subject when unnoticed this. It would be great to be able to have a built in way of matching rustlike string, or at least expressing escape sequences so that we can construct our own.

ptal commented 5 years ago

Yes, it would be cool! I'm wondering if we need to modify something else than the parser.

ptal commented 3 years ago

Triage: string literals are now automatically supported (thanks to the parser using syn).