HS-Flensburg-PLTP / language-ocaml-bnfc

MIT License
0 stars 0 forks source link

Support quoted strings #1

Closed jan-christiansen closed 7 months ago

jan-christiansen commented 9 months ago

The current implementation does not support quoted strings (https://v2.ocaml.org/manual/lex.html#quoted-string-id) because the token feature of LBNF is not expressive enough.

jan-christiansen commented 8 months ago

I have enhanced the generated Alex tokenizer to handle quoted strings. However, it is not possible to extract the quote name and the quoted string because all tokens take only a single argument. If we have to change (or introduce) a constructor into the token type, we have to adapt the lever as well as the parser.