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

    }
示例#6
0
 public override void Init(Grammar grammar)
 {
   base.Init(grammar);
 }
示例#7
0
 public virtual void Init(Grammar grammar)
 {
 }
示例#8
0
 public override void Init(Grammar grammar)
 {
     base.Init(grammar);
 }