[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parser Error: can't find the trigger
I do not really have the time to look at Jenny's problem.
Could somebody repost the "debugging" lexer class (that prints the token,
its class, and the state)? It would probably help her.
From: Jenny Lam <firstname.lastname@example.org>
To: Sableccemail@example.com <Sableccfirstname.lastname@example.org>
Date: Wednesday, August 12, 1998 4:08 PM
Subject: Parser Error: can't find the trigger
>I got a grammar file that pass through SableCC successfully with no error.
> The speed is much better than expected. Now I got the lexer, parser, and
>analysis files that was generated in the process. I created a file called
>Translation.java which extends DepthFirstAdapter.java. In it, I overwrote
>the out.. method to print out the node. I also created Tcompiler.java
>which creates an instance of Lexer, Parser, and Translation.
>However, when I tried to run the compiler (Tcompiler) with a test file
>(test.html), it error out with "parser.parserException: [1,2] THtml
>expected". I checked test.html, and the second token is html which should
>be what it is expecting. I included all the files used. I will greatly
>appreciate any help on this.