Documentation ¶
Index ¶
- Constants
- func Eval(text string, scope map[string]interface{}) (interface{}, error)
- func Init()
- type CollectingErrorListener
- type ExpressionVisitor
- func (v *ExpressionVisitor) Visit(tree antlr.ParseTree) interface{}
- func (v *ExpressionVisitor) VisitArray(context *parser.ArrayContext) interface{}
- func (v *ExpressionVisitor) VisitExpression(context *parser.ExpressionContext) interface{}
- func (v *ExpressionVisitor) VisitField(context *parser.FieldContext) interface{}
- func (v *ExpressionVisitor) VisitFunction_param(ctx *parser.Function_paramContext) interface{}
- func (v *ExpressionVisitor) VisitIndex(context *parser.IndexContext) interface{}
- func (v *ExpressionVisitor) VisitName(context *parser.NameContext) interface{}
- func (v *ExpressionVisitor) VisitObject(context *parser.ObjectContext) interface{}
- func (v *ExpressionVisitor) VisitObject_field(context *parser.Object_fieldContext) interface{}
Constants ¶
View Source
const NaN = "NaN"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectingErrorListener ¶
type CollectingErrorListener struct { *antlr.DefaultErrorListener Error error }
CollectingErrorListener is an error listener that collects all errors by appending them to the Error field
func (*CollectingErrorListener) SyntaxError ¶
func (l *CollectingErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type ExpressionVisitor ¶
type ExpressionVisitor struct { parser.BaseSimpleQueryLanguageVisitor // contains filtered or unexported fields }
func (*ExpressionVisitor) Visit ¶
func (v *ExpressionVisitor) Visit(tree antlr.ParseTree) interface{}
func (*ExpressionVisitor) VisitArray ¶
func (v *ExpressionVisitor) VisitArray(context *parser.ArrayContext) interface{}
func (*ExpressionVisitor) VisitExpression ¶
func (v *ExpressionVisitor) VisitExpression(context *parser.ExpressionContext) interface{}
func (*ExpressionVisitor) VisitField ¶
func (v *ExpressionVisitor) VisitField(context *parser.FieldContext) interface{}
func (*ExpressionVisitor) VisitFunction_param ¶
func (v *ExpressionVisitor) VisitFunction_param(ctx *parser.Function_paramContext) interface{}
func (*ExpressionVisitor) VisitIndex ¶
func (v *ExpressionVisitor) VisitIndex(context *parser.IndexContext) interface{}
func (*ExpressionVisitor) VisitName ¶
func (v *ExpressionVisitor) VisitName(context *parser.NameContext) interface{}
func (*ExpressionVisitor) VisitObject ¶
func (v *ExpressionVisitor) VisitObject(context *parser.ObjectContext) interface{}
func (*ExpressionVisitor) VisitObject_field ¶
func (v *ExpressionVisitor) VisitObject_field(context *parser.Object_fieldContext) interface{}
Click to show internal directories.
Click to hide internal directories.