Andreas Abel
Andreas Abel
One could have a pragma like ``` {-# Example(Exp): 5 + 6 * 7 #-} ``` The name of the non-terminal (`Exp`) could be optional; in that case, the example...
I started to work on this towards allowing the overwrite, but I realized I will have to modify every single backend for this. :( (I expected the implementation of bnfc...
Ok, I will have a go at it. I already changed `Lexing.hs`, but then I have to do the refactoring so that this change is picked up by the backends.
This issue gets more weight by problems such as https://github.com/BNFC/bnfc/issues/302#issuecomment-720151556 .
Hello @fonfalleh, thanks for he report. Atm BNFC does not correctly support grammars that do not have a notion of _identifier_. This is because keywords are first parsed (more precisely:...
> Does this mean that everything that can be lexed must match an Ident? Not sure if I follow. No, but BNFC puts a regex for `Ident` in the lexer...
There is the `pygments` backend to that end. Other backends would be thinkable. Caveat: there is a reimplementation of BNFC in progress, so extending the present implementation by a new...
The reimplementation aims at being conservative in the first step, meaning, backwards-compatible. So the LBNF language stays the same.
Thanks for the update, @hangingman ! I will have a look soon, but I decided to make 2.9.4 a conservative release, and only then merge new features.
Thanks @hangingman for the PR! Please make sure the tests still work. You can run the testsuite from the `/testing` directory: ``` /testing$ make ``` I pushed a commit that...