java - Issues parsing a test file with ANTLRv4 -


i've defined grammar in antlrv4, written small example file test it's parsing, , giving me error:

line 1:0 mismatched input 'import' expecting 'class' 

the test file http://pastebin.com/thpuexl5

the grammar file http://pastebin.com/6pauhzrt

i have no idea why grammar i've written trying match 'class' instead of 'import' though i've defined import should come first.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -