[erlang-questions] Debugging yecc grammars: what techniques are available?
Sun Feb 5 00:45:17 CET 2017
I'm in the process of writing a domain-specific language, using a
custom lexer and a yecc parser. In the process of attempting to add a
new feature to the grammar, I've managed to break what appears to me
to be a completely unrelated piece of the grammar: I'm adding a
structure similar to a list comprehension, and suddenly the integer
comparison operators have stopped working in one group of cases.
What approaches are there for debugging this kind of problem? The
best I can some up with is inspection of the .yrl source in detail,
but that's not helping. How else can I work out what the issue is?
Obviously, I could post the grammar here for inspection by more
experienced minds than mine, but I'd prefer to find better tooling and
techniques rather than mere appeal to higher authority...
Hugo Mills | Strive for apathy!
hugo@REDACTED carfax.org.uk |
PGP: E2AB1DE4 | Andrew Zalotocky
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the erlang-questions