check

package
v0.24.4-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMCLErrorListener

type CMCLErrorListener struct {
	*antlr.DefaultErrorListener
	// contains filtered or unexported fields
}

func (*CMCLErrorListener) SyntaxError

func (d *CMCLErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{},
	line, column int, msg string, e antlr.RecognitionException)

type CheckEvaluator

type CheckEvaluator interface {
	Evaluate(check string, primaryField string, fields map[string]types.IType, optMissingFields map[string]bool) (types.IType, bool, error)
}

func NewCheckEvaluator

func NewCheckEvaluator() CheckEvaluator

type CheckParser

type CheckParser struct {
	*parser_cmcl.BaseCMCLListener
	// contains filtered or unexported fields
}

func (*CheckParser) EnterAndExpr

func (p *CheckParser) EnterAndExpr(ctx *parser_cmcl.AndExprContext)

EnterAndExpr is called when production andExpr is entered.

func (*CheckParser) EnterBoolean

func (p *CheckParser) EnterBoolean(ctx *parser_cmcl.BooleanContext)

EnterBoolean is called when production boolean is entered.

func (*CheckParser) EnterElse

func (p *CheckParser) EnterElse(ctx *parser_cmcl.ElseContext)

EnterElse is called when production else is entered.

func (*CheckParser) EnterElseif

func (p *CheckParser) EnterElseif(ctx *parser_cmcl.ElseifContext)

EnterElseif is called when production elseif is entered.

func (*CheckParser) EnterFieldExpr

func (p *CheckParser) EnterFieldExpr(ctx *parser_cmcl.FieldExprContext)

EnterFieldCheck is called when production fieldCheck is entered.

func (*CheckParser) EnterFloat

func (p *CheckParser) EnterFloat(ctx *parser_cmcl.FloatContext)

EnterFloat is called when production float is entered.

func (*CheckParser) EnterForeachCheck

func (p *CheckParser) EnterForeachCheck(ctx *parser_cmcl.ForeachCheckContext)

EnterForeachCheck is called when production foreachCheck is entered.

func (*CheckParser) EnterFuncExpr

func (p *CheckParser) EnterFuncExpr(ctx *parser_cmcl.FuncExprContext)

EnterFunction is called when production function is entered.

func (*CheckParser) EnterFunction

func (p *CheckParser) EnterFunction(ctx *parser_cmcl.FunctionContext)

EnterFunction is called when production function is entered.

func (*CheckParser) EnterIfCheck

func (p *CheckParser) EnterIfCheck(ctx *parser_cmcl.IfCheckContext)

EnterIfCheck is called when production ifCheck is entered.

func (*CheckParser) EnterInt

func (p *CheckParser) EnterInt(ctx *parser_cmcl.IntContext)

EnterInt is called when production int is entered.

func (*CheckParser) EnterNotExpr

func (p *CheckParser) EnterNotExpr(ctx *parser_cmcl.NotExprContext)

EnterNotExpr is called when production notExpr is entered.

func (*CheckParser) EnterOrExpr

func (p *CheckParser) EnterOrExpr(ctx *parser_cmcl.OrExprContext)

EnterOrExpr is called when production orExpr is entered.

func (*CheckParser) EnterParenExpr

func (p *CheckParser) EnterParenExpr(ctx *parser_cmcl.ParenExprContext)

EnterParenExpr is called when production parenExpr is entered.

func (*CheckParser) EnterString

func (p *CheckParser) EnterString(ctx *parser_cmcl.StringContext)

EnterString is called when production string is entered.

func (*CheckParser) ExitAndExpr

func (p *CheckParser) ExitAndExpr(ctx *parser_cmcl.AndExprContext)

ExitAndExpr is called when production andExpr is exited.

func (*CheckParser) ExitElse

func (p *CheckParser) ExitElse(ctx *parser_cmcl.ElseContext)

ExitElse is called when production else is exited.

func (*CheckParser) ExitElseif

func (p *CheckParser) ExitElseif(ctx *parser_cmcl.ElseifContext)

ExitElseif is called when production elseif is exited.

func (*CheckParser) ExitFieldExpr

func (p *CheckParser) ExitFieldExpr(ctx *parser_cmcl.FieldExprContext)

ExitFieldCheck is called when production fieldCheck is exited.

func (*CheckParser) ExitForeachCheck

func (p *CheckParser) ExitForeachCheck(ctx *parser_cmcl.ForeachCheckContext)

ExitForeachCheck is called when production foreachCheck is exited.

func (*CheckParser) ExitFuncExpr

func (p *CheckParser) ExitFuncExpr(ctx *parser_cmcl.FuncExprContext)

func (*CheckParser) ExitFunction

func (p *CheckParser) ExitFunction(ctx *parser_cmcl.FunctionContext)

ExitFunction is called when production function is exited.

func (*CheckParser) ExitIfCheck

func (p *CheckParser) ExitIfCheck(ctx *parser_cmcl.IfCheckContext)

ExitIfCheck is called when production ifCheck is exited.

func (*CheckParser) ExitNotExpr

func (p *CheckParser) ExitNotExpr(ctx *parser_cmcl.NotExprContext)

ExitNotExpr is called when production notExpr is exited.

func (*CheckParser) ExitOrExpr

func (p *CheckParser) ExitOrExpr(ctx *parser_cmcl.OrExprContext)

ExitOrExpr is called when production orExpr is exited.

func (*CheckParser) ExitParenExpr

func (p *CheckParser) ExitParenExpr(ctx *parser_cmcl.ParenExprContext)

ExitParenExpr is called when production parenExpr is exited.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL