mdaines / grammophone

A tool for analyzing and transforming context-free grammars.
https://mdaines.github.io/grammophone
MIT License
202 stars 23 forks source link

How to enter a grammar rule that includes '.' #1

Closed samis closed 2 years ago

samis commented 8 years ago

This very simple grammar: https://github.com/arrdem/sad/blob/master/test/lisp.bnf cannot be entered and analysed here because there is no way of using the dot character. How could one properly escape this character?

mdaines commented 7 years ago

There is currently no way to do this, because Grammophone doesn't support strings for names. The only workaround is to write something like "DOT" or "PERIOD" instead of ".".

Brittank88 commented 2 years ago

A better workaround (though, may reduce readability): https://www.compart.com/en/unicode/U+2024