[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of states

Hi again,

I forgot to say:  the main problem, in your grammar, was that
"input_character" included the '$' character, so the lexer was doing as
advertized: it matched the longest valid token, e.g. "$xxx" is longer
than "$", so "$xxx" is a string_literal.

Etienne M. Gagnon, M.Sc.                     e-mail: egagnon@j-meg.com
Author of SableCC:                             http://www.sablecc.org/
and SableVM:                                   http://www.sablevm.org/