[erlang-questions] Debugging yecc grammars: what techniques are available?

Hugo Mills <>
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.

-- 
Hugo Mills             | Strive for apathy!
 carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |                                      Andrew Zalotocky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170204/28db1356/attachment.bin>


More information about the erlang-questions mailing list