GuntherRademacher / rr

RR - Railroad Diagram Generator
Apache License 2.0
467 stars 51 forks source link

Bug parsing brackets within brackets #25

Closed SMUsamaShah closed 11 months ago

SMUsamaShah commented 11 months ago
Constant ::= [+-\{\}\[\]]

This fails with syntax error. Tried many combinations of \ to escape the characters, none is working correctly.

Grammar doesn't specify (or may be I haven't looked properly) but is there a special way to escape these characters?

mingodad commented 11 months ago

You need to use hexadecimal like:

[  -> #x5B
]  -> #x5D
{  -> #x7B
}  -> #x7D
...
SMUsamaShah commented 11 months ago

Thanks