At 08:29 14/11/2008, [EMAIL PROTECTED] wrote:
 >If I do what yo say  I obtain this error:
 >line 7:8 missing EOF at 'adds'
 >
 >Shouldn't this error be something like this?:
 >line 7:8 required (...)+ loop did not match anything at input
 >'adds'

If your input consists solely of the invalid instruction, then 
this is the error you'll get as well.

When your input contains some valid instructions followed by some 
invalid instructions, then the (...)+ loop will pass (since there 
was at least one valid instruction) and it'll then try to match 
the EOF -- if it's not yet the end of the input (because there was 
an invalid instruction afterwards), then you'll get an "missing 
EOF" error (like you did).


List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/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