public LanguageCompiler(Grammar grammar) { var builder = new GrammarDataBuilder(grammar); Data = builder.Build(); Parser = new Parser(Data); Scanner = new Scanner(Data); }
public static Grammar CreateScriptGrammar(bool expressionGrammar) { Grammar result = new Grammar(); result.CreateGrammar(expressionGrammar); return result; }
public GrammarDataBuilder(Grammar grammar) { _grammar = grammar; }
public override void Init(Grammar grammar) { base.Init(grammar); _isLineComment |= _endSymbol.Contains("\n"); }
public virtual void Init(Grammar grammar) { }
public override void Init(Grammar grammar) { base.Init(grammar); }