Changing Lexical States

View: New views
2 Messages — Rating Filter:   Alert me  

Changing Lexical States

by Kurt Guenther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Is there a way to change lexical states programmatically?    I know what
to expect next based on field values parsed earlier, but I don't see a
way to enter the correct state based on lexical input alone.

--Kurt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Changing Lexical States

by Tom Copeland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 6, 2009, at 11:50 AM, Kurt Guenther wrote:

>
> Is there a way to change lexical states programmatically?    I know  
> what to expect next based on field values parsed earlier, but I  
> don't see a way to enter the correct state based on lexical input  
> alone.

Yup, you can use SwitchTo as discussed here:

http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc3.17

Yours,

Tom
http://generatingparserswithjavacc.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...