Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nonterminals

38 views
Skip to first unread message

Markus Knecht

unread,
May 13, 2013, 4:55:02 AM5/13/13
to
I've written a compiler backend for lcc. I've done alot of micro tests, which worked fine, but on my first bigger programm i get the error:

error in _rule-- Bad goal nonterminal xxxxxx

where the xxxxxx varies each time i try to compile.
Is their any way to find out which nonterminal is missing in my backend?

jacob navia

unread,
May 13, 2013, 7:45:23 AM5/13/13
to
Le 13/05/13 10:55, Markus Knecht a �crit :
Debug the compiler. Put a breakpoint in _rule and see what you are
compiling!

In this years working with lcc I have developed a pretty printer for
lcc's intermediate language, and a sixth (or seventh) sense for
getting at the missing rule.

jacob
0 new messages