I’m just starting out with Antlr, so please forgive the noob question here. I’m lost. Any help is appreciated.
This is my grammar script:
grammar test;
script :
'begin script' IDENT ':'
'end script' IDENT
;
IDENT : ('a'..'z' | 'A'..'Z') ('a'..'z'|'A'..'Z'|'0'..'9')*
;
This is the script I’m trying to run it against:
begin script spork:
end script spork
The result in ANTLRWorks 1.3.1:

What am I doing wrong?
You usually want to tell ANTLR to ignore whitespace with a lexer rule: