nodejs / llparse

Generating parsers in LLVM IR
http://llparse.org
Other
584 stars 30 forks source link

cannot match/peek '\' charactor (generated code missing escape) #23

Closed terrywh closed 5 years ago

terrywh commented 5 years ago

i'm tring to use llparse to create a parser for TOML (lltoml) and encounters a problem when match trailing "\" to concat long string;

i cannot match/peek '\' charactor (generated code missing escape which cause compile problem): generate code:

case '\': 

maybe change to case 92: / case '\\': instead ? @indutny

indutny commented 5 years ago

Sorry about that! Should be fixed in 6.02, please give it a try!

terrywh commented 5 years ago

confirm fixed. thanks~

indutny commented 5 years ago

Awesome! Thank you!