parse

package
v0.745.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 37 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ImportError is returned by parser when its unable to load input modules
	ImportError = 1
	// ParseError is returned by parser when one of the input files has syntax errors
	ParseError = 2
)
View Source
const GitRootMarker = ".git"
View Source
const SyslRootMarker = ".sysl"
View Source
const TemplateImpliedResult = "__$"
View Source
const TemplateLogString = "__$Log"

Variables

This section is empty.

Functions

func LoadAndGetDefaultApp

func LoadAndGetDefaultApp(model string, fs afero.Fs, p *Parser) (*sysl.Module, string, error)

func MustUnescape added in v0.8.0

func MustUnescape(str string) string

MustUnescape will escape URL escaped characters.

func MustUnescapeStrings added in v0.411.0

func MustUnescapeStrings(strs []string) []string

MustUnescapeStrings will escape URL escaped characters in an array of strings.

func NewPinner added in v0.467.0

func NewPinner(fs afero.Fs) (retriever.Retriever, error)

func NewReader added in v0.431.0

func NewReader(fs afero.Fs) (reader.Reader, error)

func SyslRootDir added in v0.472.0

func SyslRootDir(fs afero.Fs) string

Types

type Parser

type Parser struct {
	AssignTypes map[string]TypeData
	LetTypes    map[string]TypeData
	Messages    map[string][]msg.Msg

	Settings
	// contains filtered or unexported fields
}

Parser holds assign types and let(variable) definitions in hierarchical order, messages generated while parsing and whether a root was found or not

func NewParser

func NewParser() *Parser

NewParser intializes and returns a new Parser instance

func (*Parser) GetAssigns

func (p *Parser) GetAssigns() map[string]TypeData

func (*Parser) GetLets

func (p *Parser) GetLets() map[string]TypeData

func (*Parser) GetMessages

func (p *Parser) GetMessages() map[string][]msg.Msg

func (*Parser) Parse

func (p *Parser) Parse(resource string, reader reader.Reader) (*sysl.Module, error)

Parse parses a sysl definition from an retriever interface

func (*Parser) ParseFromFs added in v0.208.0

func (p *Parser) ParseFromFs(filename string, fs afero.Fs) (*sysl.Module, error)

ParseFromFs parses a sysl definition from an afero filesystem

func (*Parser) ParseFromFsWithVendor added in v0.472.0

func (p *Parser) ParseFromFsWithVendor(filename string, fs afero.Fs) (*sysl.Module, error)

ParseFromFsWithVendor parses a sysl definition from an afero filesystem, and vendor remote files in root dir

func (*Parser) ParseString added in v0.92.0

func (p *Parser) ParseString(content string) (*sysl.Module, error)

ParseString parses a sysl definition in string form.

func (*Parser) RestrictToLocalImport

func (p *Parser) RestrictToLocalImport()

func (*Parser) Set added in v0.632.0

func (p *Parser) Set(settings Settings)

type PathStack added in v0.5.1

type PathStack struct {
	// contains filtered or unexported fields
}

func NewPathStack added in v0.5.1

func NewPathStack(sep string) PathStack

func (PathStack) Get added in v0.5.1

func (p PathStack) Get() string

func (PathStack) Parts added in v0.5.1

func (p PathStack) Parts() []string

Parts() clones the path items into a new slice so that it is safe to store

func (*PathStack) Pop added in v0.5.1

func (p *PathStack) Pop() string

func (*PathStack) Push added in v0.5.1

func (p *PathStack) Push(items ...string) string

func (*PathStack) Reset added in v0.5.1

func (p *PathStack) Reset() string

type RestEndpointPath added in v0.726.0

type RestEndpointPath struct{}

type Settings added in v0.632.0

type Settings struct {
	MaxImportDepth          int
	OperationSummary        bool
	NoDifferentVersionCheck bool
	NoParsing               bool
}

type SyslParserErrorListener

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

SyslParserErrorListener ...

func (*SyslParserErrorListener) ReportAmbiguity

func (d *SyslParserErrorListener) ReportAmbiguity(
	recognizer antlr.Parser,
	dfa *antlr.DFA,
	startIndex, stopIndex int,
	exact bool,
	ambigAlts *antlr.BitSet,
	configs antlr.ATNConfigSet,
)

ReportAmbiguity ...

func (*SyslParserErrorListener) ReportAttemptingFullContext

func (d *SyslParserErrorListener) ReportAttemptingFullContext(
	recognizer antlr.Parser,
	dfa *antlr.DFA,
	startIndex, stopIndex int,
	conflictingAlts *antlr.BitSet,
	configs antlr.ATNConfigSet,
)

ReportAttemptingFullContext ...

func (*SyslParserErrorListener) ReportContextSensitivity

func (d *SyslParserErrorListener) ReportContextSensitivity(
	recognizer antlr.Parser,
	dfa *antlr.DFA,
	startIndex, stopIndex int,
	prediction int,
	configs antlr.ATNConfigSet,
)

ReportContextSensitivity ...

func (*SyslParserErrorListener) SyntaxError

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

SyntaxError ...

type TreeShapeListener

type TreeShapeListener struct {
	*parser.BaseSyslParserListener
	// contains filtered or unexported fields
}

TreeShapeListener ..

func NewTreeShapeListener

func NewTreeShapeListener() *TreeShapeListener

NewTreeShapeListener ...

func (*TreeShapeListener) EnterAlias

func (s *TreeShapeListener) EnterAlias(ctx *parser.AliasContext)

EnterAlias is called when production alias is entered.

func (*TreeShapeListener) EnterAnnotation

func (s *TreeShapeListener) EnterAnnotation(ctx *parser.AnnotationContext)

EnterAnnotation is called when production annotation is entered.

func (*TreeShapeListener) EnterAnnotation_value

func (s *TreeShapeListener) EnterAnnotation_value(ctx *parser.Annotation_valueContext)

EnterAnnotation_value is called when production annotation_value is entered.

func (*TreeShapeListener) EnterApp_decl

func (s *TreeShapeListener) EnterApp_decl(ctx *parser.App_declContext)

EnterApp_decl is called when production app_decl is entered.

func (*TreeShapeListener) EnterApp_name

func (s *TreeShapeListener) EnterApp_name(*parser.App_nameContext)

EnterApp_name is called when production app_name is entered.

func (*TreeShapeListener) EnterAtomT_implied_dot

func (s *TreeShapeListener) EnterAtomT_implied_dot(ctx *parser.AtomT_implied_dotContext)

EnterAtomT_implied_dot is called when production atomT_implied_dot is entered.

func (*TreeShapeListener) EnterCall_arg

func (s *TreeShapeListener) EnterCall_arg(ctx *parser.Call_argContext)

EnterCall_arg is called when production call_arg is entered.

func (*TreeShapeListener) EnterCall_stmt

func (s *TreeShapeListener) EnterCall_stmt(ctx *parser.Call_stmtContext)

EnterCall_stmt is called when production call_stmt is entered.

func (*TreeShapeListener) EnterCollector

func (s *TreeShapeListener) EnterCollector(ctx *parser.CollectorContext)

EnterCollector is called when production collector is entered.

func (*TreeShapeListener) EnterCollector_action_stmt

func (s *TreeShapeListener) EnterCollector_action_stmt(ctx *parser.Collector_action_stmtContext)

EnterCollector_action_stmt is called when production collector_action_stmt is entered.

func (*TreeShapeListener) EnterCollector_call_stmt

func (s *TreeShapeListener) EnterCollector_call_stmt(ctx *parser.Collector_call_stmtContext)

EnterCollector_call_stmt is called when production collector_call_stmt is entered.

func (*TreeShapeListener) EnterCollector_http_stmt

func (s *TreeShapeListener) EnterCollector_http_stmt(ctx *parser.Collector_http_stmtContext)

EnterCollector_http_stmt is called when production collector_http_stmt is entered.

func (*TreeShapeListener) EnterCollector_pubsub_call

func (s *TreeShapeListener) EnterCollector_pubsub_call(ctx *parser.Collector_pubsub_callContext)

EnterCollector_pubsub_call is called when production collector_pubsub_call is entered.

func (*TreeShapeListener) EnterDoc_string

func (s *TreeShapeListener) EnterDoc_string(ctx *parser.Doc_stringContext)

EnterDoc_string is called when production doc_string is entered.

func (*TreeShapeListener) EnterElse_stmt

func (s *TreeShapeListener) EnterElse_stmt(ctx *parser.Else_stmtContext)

EnterElse_stmt is called when production else_stmt is entered.

func (*TreeShapeListener) EnterEnum added in v0.8.0

func (s *TreeShapeListener) EnterEnum(ctx *parser.EnumContext)

EnterEnum is called when production enum is entered.

func (*TreeShapeListener) EnterEvent

func (s *TreeShapeListener) EnterEvent(ctx *parser.EventContext)

EnterEvent is called when production event is entered.

func (*TreeShapeListener) EnterExpr_agg_func

func (s *TreeShapeListener) EnterExpr_agg_func(ctx *parser.Expr_agg_funcContext)

EnterExpr_agg_func is called when production expr_agg_func is entered.

func (*TreeShapeListener) EnterExpr_atom_list

func (s *TreeShapeListener) EnterExpr_atom_list(ctx *parser.Expr_atom_listContext)

EnterExpr_atom_list is called when production expr_atom_list is entered.

func (*TreeShapeListener) EnterExpr_first_func

func (s *TreeShapeListener) EnterExpr_first_func(ctx *parser.Expr_first_funcContext)

EnterExpr_first_func is called when production expr_first_func is entered.

func (*TreeShapeListener) EnterExpr_func

func (s *TreeShapeListener) EnterExpr_func(ctx *parser.Expr_funcContext)

EnterExpr_func is called when production expr_func is entered.

func (*TreeShapeListener) EnterExpr_matching

func (s *TreeShapeListener) EnterExpr_matching(ctx *parser.Expr_matchingContext)

EnterExpr_matching is called when production expr_matching is entered.

func (*TreeShapeListener) EnterExpr_navigate

func (s *TreeShapeListener) EnterExpr_navigate(ctx *parser.Expr_navigateContext)

EnterExpr_navigate is called when production expr_navigate is entered.

func (*TreeShapeListener) EnterExpr_rank_func

func (s *TreeShapeListener) EnterExpr_rank_func(ctx *parser.Expr_rank_funcContext)

EnterExpr_rank_func is called when production expr_rank_func is entered.

func (*TreeShapeListener) EnterExpr_set

func (s *TreeShapeListener) EnterExpr_set(ctx *parser.Expr_setContext)

EnterExpr_set is called when production expr_set is entered.

func (*TreeShapeListener) EnterField

func (s *TreeShapeListener) EnterField(ctx *parser.FieldContext)

EnterField is called when production field is entered.

func (*TreeShapeListener) EnterField_type

func (s *TreeShapeListener) EnterField_type(ctx *parser.Field_typeContext)

EnterField_type is called when production field_type is entered.

func (*TreeShapeListener) EnterFor_stmt

func (s *TreeShapeListener) EnterFor_stmt(ctx *parser.For_stmtContext)

EnterFor_stmt is called when production for_stmt is entered.

func (*TreeShapeListener) EnterGroup_stmt

func (s *TreeShapeListener) EnterGroup_stmt(ctx *parser.Group_stmtContext)

EnterGroup_stmt is called when production group_stmt is entered.

func (*TreeShapeListener) EnterHttp_path

func (s *TreeShapeListener) EnterHttp_path(ctx *parser.Http_pathContext)

EnterHttp_path is called when production http_path is entered.

func (*TreeShapeListener) EnterHttp_path_static

func (s *TreeShapeListener) EnterHttp_path_static(ctx *parser.Http_path_staticContext)

EnterHttp_path_static is called when production http_path_static is entered.

func (*TreeShapeListener) EnterHttp_path_suffix

func (s *TreeShapeListener) EnterHttp_path_suffix(ctx *parser.Http_path_suffixContext)

EnterHttp_path_suffix is called when production http_path_suffix is entered.

func (*TreeShapeListener) EnterHttp_path_var_with_type

func (s *TreeShapeListener) EnterHttp_path_var_with_type(ctx *parser.Http_path_var_with_typeContext)

EnterHttp_path_var_with_type is called when production http_path_var_with_type is entered.

func (*TreeShapeListener) EnterIf_multiple_lines

func (s *TreeShapeListener) EnterIf_multiple_lines(ctx *parser.If_multiple_linesContext)

EnterIf_multiple_lines is called when production if_multiple_lines is entered.

func (*TreeShapeListener) EnterIf_stmt

func (s *TreeShapeListener) EnterIf_stmt(ctx *parser.If_stmtContext)

EnterIf_stmt is called when production if_stmt is entered.

func (*TreeShapeListener) EnterImport_stmt

func (s *TreeShapeListener) EnterImport_stmt(ctx *parser.Import_stmtContext)

EnterImport_stmt is called when production import_stmt is entered.

func (*TreeShapeListener) EnterInplace_tuple

func (s *TreeShapeListener) EnterInplace_tuple(*parser.Inplace_tupleContext)

EnterInplace_tuple is called when production inplace_tuple is entered.

func (*TreeShapeListener) EnterMatching_rhs

func (s *TreeShapeListener) EnterMatching_rhs(ctx *parser.Matching_rhsContext)

EnterMatching_rhs is called when production matching_rhs is entered.

func (*TreeShapeListener) EnterMethod_def

func (s *TreeShapeListener) EnterMethod_def(ctx *parser.Method_defContext)

EnterMethod_def is called when production method_def is entered.

func (*TreeShapeListener) EnterMixin

func (s *TreeShapeListener) EnterMixin(*parser.MixinContext)

EnterMixin is called when production mixin is entered.

func (*TreeShapeListener) EnterModel_name

func (s *TreeShapeListener) EnterModel_name(ctx *parser.Model_nameContext)

EnterModel_name is called when production model_name is entered.

func (*TreeShapeListener) EnterName_str

func (s *TreeShapeListener) EnterName_str(ctx *parser.Name_strContext)

EnterName_str is called when production name_str is entered.

func (*TreeShapeListener) EnterName_with_attribs

func (s *TreeShapeListener) EnterName_with_attribs(ctx *parser.Name_with_attribsContext)

EnterName_with_attribs is called when production name_with_attribs is entered.

func (*TreeShapeListener) EnterOne_of_cases

func (s *TreeShapeListener) EnterOne_of_cases(ctx *parser.One_of_casesContext)

EnterOne_of_cases is called when production one_of_cases is entered.

func (*TreeShapeListener) EnterOne_of_stmt

func (s *TreeShapeListener) EnterOne_of_stmt(ctx *parser.One_of_stmtContext)

EnterOne_of_stmt is called when production one_of_stmt is entered.

func (*TreeShapeListener) EnterParam

func (s *TreeShapeListener) EnterParam(ctx *parser.ParamContext)

EnterParam is called when production param is entered.

func (*TreeShapeListener) EnterParams

func (s *TreeShapeListener) EnterParams(*parser.ParamsContext)

EnterParams is called when production params is entered.

func (*TreeShapeListener) EnterQuery_var

func (s *TreeShapeListener) EnterQuery_var(ctx *parser.Query_varContext)

EnterQuery_var is called when production query_var is entered.

func (*TreeShapeListener) EnterReference

func (s *TreeShapeListener) EnterReference(*parser.ReferenceContext)

EnterReference is called when production reference is entered.

func (*TreeShapeListener) EnterRest_endpoint

func (s *TreeShapeListener) EnterRest_endpoint(ctx *parser.Rest_endpointContext)

EnterRest_endpoint is called when production rest_endpoint is entered.

func (*TreeShapeListener) EnterRet_stmt

func (s *TreeShapeListener) EnterRet_stmt(ctx *parser.Ret_stmtContext)

EnterRet_stmt is called when production ret_stmt is entered.

func (*TreeShapeListener) EnterSequence_type

func (s *TreeShapeListener) EnterSequence_type(*parser.Sequence_typeContext)

EnterSequence_type is called when production set_type is entered.

func (*TreeShapeListener) EnterSimple_endpoint

func (s *TreeShapeListener) EnterSimple_endpoint(ctx *parser.Simple_endpointContext)

EnterSimple_endpoint is called when production api_endpoint is entered.

func (*TreeShapeListener) EnterSquiggly_args

func (s *TreeShapeListener) EnterSquiggly_args(ctx *parser.Squiggly_argsContext)

EnterSquiggly_args is called when production squiggly_args is entered.

func (*TreeShapeListener) EnterSubscribe

func (s *TreeShapeListener) EnterSubscribe(ctx *parser.SubscribeContext)

EnterSubscribe is called when production subscribe is entered.

func (*TreeShapeListener) EnterTable

func (s *TreeShapeListener) EnterTable(ctx *parser.TableContext)

EnterTable is called when production table is entered.

func (*TreeShapeListener) EnterTable_def

func (s *TreeShapeListener) EnterTable_def(ctx *parser.Table_defContext)

EnterTable_def is called when production table_def is entered.

func (*TreeShapeListener) EnterTable_refs

func (s *TreeShapeListener) EnterTable_refs(ctx *parser.Table_refsContext)

EnterTable_refs is called when production table_refs is entered.

func (*TreeShapeListener) EnterTable_stmts

func (s *TreeShapeListener) EnterTable_stmts(ctx *parser.Table_stmtsContext)

EnterTable_stmts is called when production table_stmts is entered.

func (*TreeShapeListener) EnterTarget

func (s *TreeShapeListener) EnterTarget(*parser.TargetContext)

EnterTarget is called when production target is entered.

func (*TreeShapeListener) EnterTemplate_expression added in v0.5.2

func (s *TreeShapeListener) EnterTemplate_expression(ctx *parser.Template_expressionContext)

EnterTemplate_expression is called when production template_expression is entered.

func (*TreeShapeListener) EnterTemplate_statement added in v0.5.2

func (s *TreeShapeListener) EnterTemplate_statement(ctx *parser.Template_statementContext)

EnterTemplate_statement is called when production template_statement is entered.

func (*TreeShapeListener) EnterText_stmt

func (s *TreeShapeListener) EnterText_stmt(ctx *parser.Text_stmtContext)

EnterText_stmt is called when production text_stmt is entered.

func (*TreeShapeListener) EnterTransform

func (s *TreeShapeListener) EnterTransform(ctx *parser.TransformContext)

EnterTransform is called when production transform is entered.

func (*TreeShapeListener) EnterTransform_return_type

func (s *TreeShapeListener) EnterTransform_return_type(ctx *parser.Transform_return_typeContext)

EnterTransform_return_type is called when production transform_return_type is entered.

func (*TreeShapeListener) EnterTransform_scope_var

func (s *TreeShapeListener) EnterTransform_scope_var(ctx *parser.Transform_scope_varContext)

EnterTransform_scope_var is called when production transform_scope_var is entered.

func (*TreeShapeListener) EnterTypes

func (s *TreeShapeListener) EnterTypes(ctx *parser.TypesContext)

EnterTypes is called when production types is entered.

func (*TreeShapeListener) EnterUnion

func (s *TreeShapeListener) EnterUnion(ctx *parser.UnionContext)

EnterUnion is called when production union is entered.

func (*TreeShapeListener) EnterUnion_type added in v0.202.0

func (s *TreeShapeListener) EnterUnion_type(ctx *parser.Union_typeContext)

EnterUnion_type is called when production union_type is entered.

func (*TreeShapeListener) EnterUser_defined_type

func (s *TreeShapeListener) EnterUser_defined_type(ctx *parser.User_defined_typeContext)

EnterUser_defined_type is called when production user_defined_type is entered.

func (*TreeShapeListener) EnterView

func (s *TreeShapeListener) EnterView(ctx *parser.ViewContext)

EnterView is called when production view is entered.

func (*TreeShapeListener) EnterView_param

func (s *TreeShapeListener) EnterView_param(ctx *parser.View_paramContext)

EnterView_param is called when production view_param is entered.

func (*TreeShapeListener) EnterView_return_type

func (s *TreeShapeListener) EnterView_return_type(ctx *parser.View_return_typeContext)

EnterView_return_type is called when production view_return_type is entered.

func (*TreeShapeListener) ExitAlias

func (s *TreeShapeListener) ExitAlias(ctx *parser.AliasContext)

ExitAlias is called when production alias is exited.

func (*TreeShapeListener) ExitAnnotation

func (s *TreeShapeListener) ExitAnnotation(*parser.AnnotationContext)

ExitAnnotation is called when production annotation is exited.

func (*TreeShapeListener) ExitAnnotation_value

func (s *TreeShapeListener) ExitAnnotation_value(ctx *parser.Annotation_valueContext)

ExitAnnotation_value is called when production annotation_value is exited.

func (*TreeShapeListener) ExitApp_decl

func (s *TreeShapeListener) ExitApp_decl(ctx *parser.App_declContext)

ExitApp_decl is called when production app_decl is exited.

func (*TreeShapeListener) ExitAtomT_name

func (s *TreeShapeListener) ExitAtomT_name(ctx *parser.AtomT_nameContext)

ExitAtomT_name is called when production atomT_name is exited.

func (*TreeShapeListener) ExitBinexprT

func (s *TreeShapeListener) ExitBinexprT(ctx *parser.BinexprTContext)

ExitBinexprT is called when production binexprT is exited.

func (*TreeShapeListener) ExitCollector

func (s *TreeShapeListener) ExitCollector(ctx *parser.CollectorContext)

ExitCollector is called when production collector is exited.

func (*TreeShapeListener) ExitCollector_stmts

func (s *TreeShapeListener) ExitCollector_stmts(ctx *parser.Collector_stmtsContext)

ExitCollector_stmts is called when production collector_stmts is exited.

func (*TreeShapeListener) ExitControl_item

func (s *TreeShapeListener) ExitControl_item(ctx *parser.Control_itemContext)

ExitControl_item is called when production control_item is exited.

func (*TreeShapeListener) ExitE_scope_var

func (s *TreeShapeListener) ExitE_scope_var(ctx *parser.E_scope_varContext)

ExitE_scope_var is called when production e_scope_var is exited.

func (*TreeShapeListener) ExitE_single_arg_func

func (s *TreeShapeListener) ExitE_single_arg_func(ctx *parser.E_single_arg_funcContext)

ExitE_single_arg_func is called when production e_single_arg_func is exited.

func (*TreeShapeListener) ExitElse_block_stmt

func (s *TreeShapeListener) ExitElse_block_stmt(*parser.Else_block_stmtContext)

ExitElse_block_stmt is called when production else_block_stmt is exited.

func (*TreeShapeListener) ExitElse_stmt

func (s *TreeShapeListener) ExitElse_stmt(*parser.Else_stmtContext)

ExitElse_stmt is called when production else_stmt is exited.

func (*TreeShapeListener) ExitEmpty_tuple

func (s *TreeShapeListener) ExitEmpty_tuple(ctx *parser.Empty_tupleContext)

ExitEmpty_tuple is called when production empty_tuple is exited.

func (*TreeShapeListener) ExitEnum added in v0.673.0

func (s *TreeShapeListener) ExitEnum(ctx *parser.EnumContext)

ExitEnum is called when production enum is exited.

func (*TreeShapeListener) ExitEvent

func (s *TreeShapeListener) ExitEvent(ctx *parser.EventContext)

ExitEvent is called when production event is exited.

func (*TreeShapeListener) ExitExpr_agg_func

func (s *TreeShapeListener) ExitExpr_agg_func(*parser.Expr_agg_funcContext)

ExitExpr_agg_func is called when production expr_agg_func is exited.

func (*TreeShapeListener) ExitExpr_and

func (s *TreeShapeListener) ExitExpr_and(ctx *parser.Expr_andContext)

ExitExpr_and is called when production expr_and is exited.

func (*TreeShapeListener) ExitExpr_any_func

func (s *TreeShapeListener) ExitExpr_any_func(ctx *parser.Expr_any_funcContext)

ExitExpr_any_func is called when production expr_any_func is exited.

func (*TreeShapeListener) ExitExpr_bitand

func (s *TreeShapeListener) ExitExpr_bitand(ctx *parser.Expr_bitandContext)

ExitExpr_bitand is called when production expr_bitand is exited.

func (*TreeShapeListener) ExitExpr_bitor

func (s *TreeShapeListener) ExitExpr_bitor(ctx *parser.Expr_bitorContext)

ExitExpr_bitor is called when production expr_bitor is exited.

func (*TreeShapeListener) ExitExpr_bitxor

func (s *TreeShapeListener) ExitExpr_bitxor(ctx *parser.Expr_bitxorContext)

ExitExpr_bitxor is called when production expr_bitxor is exited.

func (*TreeShapeListener) ExitExpr_but_not

func (s *TreeShapeListener) ExitExpr_but_not(ctx *parser.Expr_but_notContext)

ExitExpr_but_not is called when production expr_but_not is exited.

func (*TreeShapeListener) ExitExpr_coalesce

func (s *TreeShapeListener) ExitExpr_coalesce(ctx *parser.Expr_coalesceContext)

ExitExpr_coalesce is called when production expr_coalesce is exited.

func (*TreeShapeListener) ExitExpr_count

func (s *TreeShapeListener) ExitExpr_count(ctx *parser.Expr_countContext)

ExitExpr_count is called when production expr_count is exited.

func (*TreeShapeListener) ExitExpr_dot_assign

func (s *TreeShapeListener) ExitExpr_dot_assign(ctx *parser.Expr_dot_assignContext)

ExitExpr_dot_assign is called when production expr_dot_assign is exited.

func (*TreeShapeListener) ExitExpr_first_func

func (s *TreeShapeListener) ExitExpr_first_func(*parser.Expr_first_funcContext)

ExitExpr_first_func is called when production expr_first_func is exited.

func (*TreeShapeListener) ExitExpr_inject_stmt

func (s *TreeShapeListener) ExitExpr_inject_stmt(ctx *parser.Expr_inject_stmtContext)

ExitExpr_inject_stmt is called when production expr_inject_stmt is exited.

func (*TreeShapeListener) ExitExpr_let_statement

func (s *TreeShapeListener) ExitExpr_let_statement(ctx *parser.Expr_let_statementContext)

ExitExpr_let_statement is called when production expr_let_statement is exited.

func (*TreeShapeListener) ExitExpr_list

func (s *TreeShapeListener) ExitExpr_list(*parser.Expr_listContext)

ExitExpr_list is called when production expr_list is exited.

func (*TreeShapeListener) ExitExpr_matching

func (s *TreeShapeListener) ExitExpr_matching(*parser.Expr_matchingContext)

ExitExpr_matching is called when production expr_matching is exited.

func (*TreeShapeListener) ExitExpr_navigate_attr

func (s *TreeShapeListener) ExitExpr_navigate_attr(ctx *parser.Expr_navigate_attrContext)

ExitExpr_navigate_attr is called when production expr_navigate_attr is exited.

func (*TreeShapeListener) ExitExpr_or

func (s *TreeShapeListener) ExitExpr_or(ctx *parser.Expr_orContext)

ExitExpr_or is called when production expr_or is exited.

func (*TreeShapeListener) ExitExpr_rank_func

func (s *TreeShapeListener) ExitExpr_rank_func(*parser.Expr_rank_funcContext)

ExitExpr_rank_func is called when production expr_rank_func is exited.

func (*TreeShapeListener) ExitExpr_rel

func (s *TreeShapeListener) ExitExpr_rel(ctx *parser.Expr_relContext)

ExitExpr_rel is called when production expr_rel is exited.

func (*TreeShapeListener) ExitExpr_simple_assign

func (s *TreeShapeListener) ExitExpr_simple_assign(ctx *parser.Expr_simple_assignContext)

ExitExpr_simple_assign is called when production expr_simple_assign is exited.

func (*TreeShapeListener) ExitExpr_single_arg_func

func (s *TreeShapeListener) ExitExpr_single_arg_func(ctx *parser.Expr_single_arg_funcContext)

ExitExpr_single_arg_func is called when production expr_single_arg_func is exited.

func (*TreeShapeListener) ExitExpr_single_or_null

func (s *TreeShapeListener) ExitExpr_single_or_null(ctx *parser.Expr_single_or_nullContext)

ExitExpr_single_or_null is called when production expr_single_or_null is exited.

func (*TreeShapeListener) ExitExpr_snapshot

func (s *TreeShapeListener) ExitExpr_snapshot(ctx *parser.Expr_snapshotContext)

ExitExpr_snapshot is called when production expr_snapshot is exited.

func (*TreeShapeListener) ExitExpr_table_of_op

func (s *TreeShapeListener) ExitExpr_table_of_op(ctx *parser.Expr_table_of_opContext)

ExitExpr_table_of_op is called when production expr_table_of_op is exited.

func (*TreeShapeListener) ExitExpr_table_of_statement

func (s *TreeShapeListener) ExitExpr_table_of_statement(ctx *parser.Expr_table_of_statementContext)

ExitExpr_table_of_statement is called when production expr_table_of_statement is exited.

func (*TreeShapeListener) ExitField

func (s *TreeShapeListener) ExitField(ctx *parser.FieldContext)

ExitField is called when production field is exited.

func (*TreeShapeListener) ExitField_type

func (s *TreeShapeListener) ExitField_type(ctx *parser.Field_typeContext)

ExitField_type is called when production field_type is exited.

func (*TreeShapeListener) ExitFinal_else

func (s *TreeShapeListener) ExitFinal_else(*parser.Final_elseContext)

ExitFinal_else is called when production final_else is exited.

func (*TreeShapeListener) ExitFirst_func_target

func (s *TreeShapeListener) ExitFirst_func_target(ctx *parser.First_func_targetContext)

ExitFirst_func_target is called when production first_func_target is exited.

func (*TreeShapeListener) ExitFor_stmt

func (s *TreeShapeListener) ExitFor_stmt(*parser.For_stmtContext)

ExitFor_stmt is called when production for_stmt is exited.

func (*TreeShapeListener) ExitFunc_arg

func (s *TreeShapeListener) ExitFunc_arg(*parser.Func_argContext)

ExitFunc_arg is called when production func_arg is exited.

func (*TreeShapeListener) ExitGroup_stmt

func (s *TreeShapeListener) ExitGroup_stmt(*parser.Group_stmtContext)

ExitGroup_stmt is called when production group_stmt is exited.

func (*TreeShapeListener) ExitHttp_path

func (s *TreeShapeListener) ExitHttp_path(*parser.Http_pathContext)

ExitHttp_path is called when production http_path is exited.

func (*TreeShapeListener) ExitHttp_path_var_with_type

func (s *TreeShapeListener) ExitHttp_path_var_with_type(ctx *parser.Http_path_var_with_typeContext)

ExitHttp_path_var_with_type is called when production http_path_var_with_type is exited.

func (*TreeShapeListener) ExitIf_one_liner

func (s *TreeShapeListener) ExitIf_one_liner(ctx *parser.If_one_linerContext)

ExitIf_one_liner is called when production if_one_liner is exited.

func (*TreeShapeListener) ExitIf_stmt

func (s *TreeShapeListener) ExitIf_stmt(*parser.If_stmtContext)

ExitIf_stmt is called when production if_stmt is exited.

func (*TreeShapeListener) ExitIfvar

func (s *TreeShapeListener) ExitIfvar(ctx *parser.IfvarContext)

ExitIfvar is called when production ifvar is exited.

func (*TreeShapeListener) ExitInplace_tuple

func (s *TreeShapeListener) ExitInplace_tuple(*parser.Inplace_tupleContext)

ExitInplace_tuple is called when production inplace_tuple is exited.

func (*TreeShapeListener) ExitList_item

func (s *TreeShapeListener) ExitList_item(*parser.List_itemContext)

ExitList_item is called when production list_item is exited.

func (*TreeShapeListener) ExitLiteral

func (s *TreeShapeListener) ExitLiteral(ctx *parser.LiteralContext)

ExitLiteral is called when production literal is exited.

func (*TreeShapeListener) ExitMatching_rhs

func (s *TreeShapeListener) ExitMatching_rhs(ctx *parser.Matching_rhsContext)

ExitMatching_rhs is called when production matching_rhs is exited.

func (*TreeShapeListener) ExitMethod_def

func (s *TreeShapeListener) ExitMethod_def(*parser.Method_defContext)

ExitMethod_def is called when production method_def is exited.

func (*TreeShapeListener) ExitMixin

func (s *TreeShapeListener) ExitMixin(*parser.MixinContext)

ExitMixin is called when production mixin is exited.

func (*TreeShapeListener) ExitName_with_attribs

func (s *TreeShapeListener) ExitName_with_attribs(*parser.Name_with_attribsContext)

ExitName_with_attribs is called when production name_with_attribs is exited.

func (*TreeShapeListener) ExitOne_of_cases

func (s *TreeShapeListener) ExitOne_of_cases(*parser.One_of_casesContext)

ExitOne_of_cases is called when production one_of_cases is exited.

func (*TreeShapeListener) ExitOne_of_stmt

func (s *TreeShapeListener) ExitOne_of_stmt(*parser.One_of_stmtContext)

ExitOne_of_stmt is called when production one_of_stmt is exited.

func (*TreeShapeListener) ExitParam

func (s *TreeShapeListener) ExitParam(ctx *parser.ParamContext)

ExitParam is called when production param is exited.

func (*TreeShapeListener) ExitParams

func (s *TreeShapeListener) ExitParams(*parser.ParamsContext)

ExitParams is called when production params is exited.

func (*TreeShapeListener) ExitPower

func (s *TreeShapeListener) ExitPower(ctx *parser.PowerContext)

ExitPower is called when production power is exited.

func (*TreeShapeListener) ExitRank_expr

func (s *TreeShapeListener) ExitRank_expr(ctx *parser.Rank_exprContext)

ExitRank_expr is called when production rank_expr is exited.

func (*TreeShapeListener) ExitReference

func (s *TreeShapeListener) ExitReference(ctx *parser.ReferenceContext)

ExitReference is called when production reference is exited.

func (*TreeShapeListener) ExitRest_endpoint

func (s *TreeShapeListener) ExitRest_endpoint(*parser.Rest_endpointContext)

ExitRest_endpoint is called when production rest_endpoint is exited.

func (*TreeShapeListener) ExitSequence_type

func (s *TreeShapeListener) ExitSequence_type(ctx *parser.Sequence_typeContext)

ExitSequence_type is called when production set_type is exited.

func (*TreeShapeListener) ExitSet_type

func (s *TreeShapeListener) ExitSet_type(ctx *parser.Set_typeContext)

ExitSet_type is called when production set_type is exited.

func (*TreeShapeListener) ExitSimple_endpoint

func (s *TreeShapeListener) ExitSimple_endpoint(ctx *parser.Simple_endpointContext)

ExitSimple_endpoint is called when production simple_endpoint is exited.

func (*TreeShapeListener) ExitStatements

func (s *TreeShapeListener) ExitStatements(ctx *parser.StatementsContext)

ExitStatements is called when production statements is exited.

func (*TreeShapeListener) ExitSubscribe

func (s *TreeShapeListener) ExitSubscribe(ctx *parser.SubscribeContext)

ExitSubscribe is called when production subscribe is exited.

func (*TreeShapeListener) ExitSubscriber

func (s *TreeShapeListener) ExitSubscriber(*parser.SubscriberContext)

ExitSubscriber is called when production subscriber is exited.

func (*TreeShapeListener) ExitTable

func (s *TreeShapeListener) ExitTable(ctx *parser.TableContext)

ExitTable is called when production table is exited.

func (*TreeShapeListener) ExitTarget

func (s *TreeShapeListener) ExitTarget(*parser.TargetContext)

ExitTarget is called when production target is exited.

func (*TreeShapeListener) ExitTemplate_expression added in v0.5.2

func (s *TreeShapeListener) ExitTemplate_expression(ctx *parser.Template_expressionContext)

ExitTemplate_expression is called when production template_expression is exited.

func (*TreeShapeListener) ExitTemplate_statement added in v0.5.2

func (s *TreeShapeListener) ExitTemplate_statement(ctx *parser.Template_statementContext)

ExitTemplate_statement is called when production template_statement is exited.

func (*TreeShapeListener) ExitTermT

func (s *TreeShapeListener) ExitTermT(ctx *parser.TermTContext)

ExitTermT is called when production termT is exited.

func (*TreeShapeListener) ExitTransform

func (s *TreeShapeListener) ExitTransform(ctx *parser.TransformContext)

ExitTransform is called when production transform is exited.

func (*TreeShapeListener) ExitTransform_arg

func (s *TreeShapeListener) ExitTransform_arg(*parser.Transform_argContext)

ExitTransform_arg is called when production transform_arg is exited.

func (*TreeShapeListener) ExitTransform_return_type

func (s *TreeShapeListener) ExitTransform_return_type(ctx *parser.Transform_return_typeContext)

ExitTransform_return_type is called when production transform_return_type is exited.

func (*TreeShapeListener) ExitUnaryTerm

func (s *TreeShapeListener) ExitUnaryTerm(ctx *parser.UnaryTermContext)

ExitUnaryTerm is called when production unaryTerm is exited.

func (*TreeShapeListener) ExitUnion

func (s *TreeShapeListener) ExitUnion(ctx *parser.UnionContext)

ExitUnion is called when production union is exited.

func (*TreeShapeListener) ExitView

func (s *TreeShapeListener) ExitView(ctx *parser.ViewContext)

ExitView is called when production view is exited.

func (*TreeShapeListener) ExitView_param

func (s *TreeShapeListener) ExitView_param(*parser.View_paramContext)

ExitView_param is called when production view_param is exited.

func (*TreeShapeListener) ExitView_return_type

func (s *TreeShapeListener) ExitView_return_type(*parser.View_return_typeContext)

ExitView_return_type is called when production view_return_type is exited.

func (*TreeShapeListener) PushExpr

func (s *TreeShapeListener) PushExpr(expr *sysl.Expr)

func (*TreeShapeListener) TopExpr

func (s *TreeShapeListener) TopExpr() *sysl.Expr

type TypeData

type TypeData struct {
	RefType *sysl.Type
	Tuple   *sysl.Type
}

TypeData contains referenced type and actual tuple of referenced type

Jump to

Keyboard shortcuts

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