コード例 #1
0
 public GrammarDefinition(string name, GrammarExpression rule, ComputeResultDelegate createNode)
     : base(name)
 {
     Rule = rule;
     ComputeResult = createNode;
 }
コード例 #2
0
 public GrammarDefinition(string name, GrammarExpression rule)
     : this(name, rule, node => node.HasChildren ? node.Children[0].Result : null)
 {
 }