Exemple #1
0
 public abstract void Visit(LiteralExpression expression);
Exemple #2
0
 private LiteralExpression ParseLiteral()
 {
     var literal = new LiteralExpression(((LiteralToken)_current).Value);
     if (_scanner.PeekToken() != null && _scanner.PeekToken().Type == TokenType.Literal)
     {
         throw new EvaluatorException(_scanner.Column, "Expected expression.");
     }
     return literal;
 }