librelist archives

« back to archive

Detecting initial state

Detecting initial state

From:
Robert Plummer
Date:
2013-02-07 @ 18:40
How do you detect initial state?  It's be nice in the lexer if we could do
<<INITIAL>> or <<BOF>> (beginning of file).

-- 
Robert Plummer

Re: Detecting initial state

From:
Robert Plummer
Date:
2013-02-07 @ 19:17
Found it! I think anyway.  Create a state called 'INITIAL' and then use it
in the lexer as <INITIAL>.

On Thu, Feb 7, 2013 at 1:40 PM, Robert Plummer <robertleeplummerjr@gmail.com
> wrote:

> How do you detect initial state?  It's be nice in the lexer if we could do
> <<INITIAL>> or <<BOF>> (beginning of file).
>
> --
> Robert Plummer




-- 
Robert Plummer