Documentation ¶
Index ¶
- type CalculatorVisitor
- func (v *CalculatorVisitor) VisitExpression(tree parser.IExpressionContext) Value
- func (v *CalculatorVisitor) VisitFactor(tree parser.IFactorContext) Value
- func (v *CalculatorVisitor) VisitFunc(tree parser.IFnContext) Value
- func (v *CalculatorVisitor) VisitNumber(tree antlr.TerminalNode) float64
- func (v *CalculatorVisitor) VisitPrimary(tree parser.IPrimaryContext) Value
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatorVisitor ¶
type CalculatorVisitor struct { antlr.BaseParseTreeVisitor // contains filtered or unexported fields }
func (*CalculatorVisitor) VisitExpression ¶
func (v *CalculatorVisitor) VisitExpression(tree parser.IExpressionContext) Value
func (*CalculatorVisitor) VisitFactor ¶
func (v *CalculatorVisitor) VisitFactor(tree parser.IFactorContext) Value
func (*CalculatorVisitor) VisitFunc ¶
func (v *CalculatorVisitor) VisitFunc(tree parser.IFnContext) Value
func (*CalculatorVisitor) VisitNumber ¶
func (v *CalculatorVisitor) VisitNumber(tree antlr.TerminalNode) float64
func (*CalculatorVisitor) VisitPrimary ¶
func (v *CalculatorVisitor) VisitPrimary(tree parser.IPrimaryContext) Value
Click to show internal directories.
Click to hide internal directories.