If I generate a parser using FSYacc, will it be stream safe?
The only reason I ask is because functions
Parsing.rhs_start_pos and Parsing.symbol_end_pos
it seems like they did not have any state, which would make me assume that they get the current NonTerminal / Symbols from a common location, is that correct?
After reflecting the code, I see that they get the post from the static property
internal static IParseState parse_information
{
get
{
return parse_information;
}
set
{
parse_information = value;
}
}
It is right? If so, what can I do about it?
Edit: I also see a static method called set_parse_state
public static void set_parse_state(IParseState x)
{
parse_information = x;
}
But this still will not solve my problem ...
source
share