public override void ExitSignedNumberExpr(MiniSqlParserParser.SignedNumberExprContext context) { Sign sign = Sign.Plus; if (context.op.Type == MiniSqlParserLexer.MINUS) { sign = Sign.Minus; } else { sign = Sign.Plus; } INode node = null; if (context.UINTEGER_LITERAL() != null) { var comments = this.GetComments(context.UINTEGER_LITERAL()); var value = new UNumericLiteral(context.UINTEGER_LITERAL().GetText(), comments); node = new SignedNumberExpr(sign, value, this.GetComments(context.op)); } else { var comments = this.GetComments(context.UNUMERIC_LITERAL()); var value = new UNumericLiteral(context.UNUMERIC_LITERAL().GetText(), comments); node = new SignedNumberExpr(sign, value, this.GetComments(context.op)); } _stack.Push(node); }
// Expressions virtual public void VisitBefore(SignedNumberExpr expr) { }
virtual public void VisitAfter(SignedNumberExpr expr) { }
// Expressions public override void VisitAfter(SignedNumberExpr expr) { var operand = (UNumericLiteral)_stack.Pop(); _stack.Push(expr); }
public void VisitAfter(SignedNumberExpr expr) { _visitor.VisitAfter(expr); }
// Expressions public void VisitBefore(SignedNumberExpr expr) { _visitor.VisitBefore(expr); }