parrt at cs.usfca.edu
Sat Jul 31 16:59:13 PDT 2010
There should be only one shared state between a single instance of a parser. Each new instance will get its own shared state. There is a single shared state among all parsers imported into a root parser.
lexer and parser share a type definition but at runtime they have different shared state.
On Jul 31, 2010, at 11:49 AM, Alan Condit wrote:
> Is there one copy of the RecognizerSharedState structure in memory and it is actually shared by the parser and the lexer, or does each have a separate copy of the structure and it is only shared in the sense that they both use the same structure?
> Alan Condit
> 1085 Tierra Ct.
> Woodburn, OR 97071
> Email -- acondit at ipns.com
> Home-Office (503) 982-0906
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest