I was looking at the code for a Javascript grammar written in ANTLR 3,
http://www.antlr3.org/grammar/1206736738015/JavaScript.g
In many instances I found
program
: LT!* sourceElements LT!* EOF!
;
what does LT!*
mean ?
EDIT:
From http://ftp.camk.edu.pl/camk/chris/antlrman/antlrman.pdf
I found that LT
stands for LOOKAHEAD TOKEN
but it is the N
th look ahead token, where is the N
part in the above ?