public GetRecognizerFileName ( bool header ) : string | ||
header | bool | |
return | string |
public virtual string GetRecognizerFileName(bool header)
{
AbstractTarget target = GetTarget();
if (target == null)
{
throw new NotSupportedException("Cannot generate code without a target.");
}
return target.GetRecognizerFileName(header);
}
CodeGenerator::GetRecognizerFileName ( ) : string |
public virtual OutputModelObject BuildLexerOutputModel(bool header) { CodeGenerator gen = @delegate.GetGenerator(); LexerFile file = LexerFile(gen.GetRecognizerFileName(header)); SetRoot(file); file.lexer = Lexer(file); Grammar g = @delegate.GetGrammar(); foreach (Rule r in g.rules.Values) { BuildLexerRuleActions(file.lexer, r); } return(file); }