newlines in Gump
Torbjörn Lager
lager at ling.gu.se
Thu Jul 4 19:05:25 CEST 2002
Hi All,
Can a sequence of newlines be used as a(n ordinary) token in Gump? (I
need it to resolve a conflict.) In my scanner I have:
...
lex <\n+>
GS, putToken1('eols')
end
lex <<EOF>>
GS, putToken1('EOF')
end
...
and in my parser:
...
syn Rule($)
Sym(LHS) '->' SymSeq(Body) 'eols' => rule(LHS Body)
end
...
but the parser doesn't seem to get hold of the EOF.
Any clues?
Regards,
Torbjorn
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list