|
Hi Lola, You should first make sure that your lexer behaves as you expect it to do. Often, errors in the lexer specification lead to syntax errors. Try a custom debug lexer such as: class PrintLexer extends Lexer
{
PrintLexer(PushbackReader reader)
{
super(reader);
}
protected void filter()
{
System.out.println(token.getClass() +
", state : " + state.id() +
", text : [" + token.getText() + "]");
}
}
Have fun!Etienne Lola Oluyomi a écrit :
-- Etienne M. Gagnon, Ph.D. SableCC: http://sablecc.org SableVM: http://sablevm.org |
Attachment:
signature.asc
Description: OpenPGP digital signature