Example #1
0
        protected override object OnTerminalRule(INonterminalToken token)
        {
            if (token == null)
            {
                throw new ArgumentNullException(nameof(token));
            }

            return(TerminalRule.From(token.Terminal(0).Value, Visit <IExpression>(token[1])));
        }
Example #2
0
 protected override object OnTerminalRule(INonterminalToken token)
 {
     return(TerminalRule.From(token.Terminal(0).Value, Visit <IExpression>(token[1])));
 }
Example #3
0
 protected override object OnVariableTerminalRule(ASTNode node)
 {
     return(TerminalRule.From(VisitChild <Name>(node, 0).Text, VisitChild <IExpression>(node, 1)));
 }