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.

T
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?
> 
> Thanks,
> Alan
> ---
> 
> Alan Condit
> 1085 Tierra Ct.
> Woodburn, OR 97071
> 
> Email -- [email protected]
> 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


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to