Hi guys,

While trying to implement C parser based on the C.g I've run into a 
problem. Parsing following code with CParser.translation_unit() leads to 
no viable alternative at token '.'.

int main()
{
base.field;
}

I've tried almost all of 3.x ANTLR versions with default generating 
options without any success. I've even generated debug parser and passed 
BlankDebugEventListener to it.

While debugging the grammar with the ANTLRWorks Interpreter and 
ANTLRv3IDE as well on the same input, both build correct tree.

 From my point of view, it could be somehow related to the 
http://www.antlr.org/jira/browse/ANTLR-178 bug.

I would appreciate if anybody could tell me how to either understand 
what is wrong in the grammar or generate working parser, for example the 
one which ANTLRWorks Interpreter uses.

Thanks for helping,
Andrew


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to