예제 #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);
 }