コード例 #1
0
        public RunnerParsingState EnterRule(Rule rule)
        {
            var newNode = _node.CreateChild(new ParsingTreeNodeInfo(rule, rule.Expr, this.Pos));

            return(new RunnerParsingState(this.Text, this, this.Pos, 0, rule.Expr, null, this, this.Grammar, newNode));
        }
コード例 #2
0
 public ParsingTreeNodeInfo(Rule rule, Expr expr, int position)
 {
     this.Rule     = rule;
     this.Expr     = expr;
     this.Position = position;
 }