rules

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProdRule TransformerFn = ProductionRule(
	[]Precedence{
		precedence20,
		precedence18,
		precedence17,
		precedence16,
		precedence15,
		precedence14,
		precedence13,
		precedence12,
		precedence11,
		precedence10,
		precedence09,
		precedence08,
		precedence07,
		precedence06,
		precedence04b,
		precedence04a,
		precedence03,
		precedence01,
	},
	FlatGroup(Start(), Any(), End()),
)

Functions

func TransBreakStatement

func TransBreakStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransContinueStatement

func TransContinueStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransDefForInSymbol

func TransDefForInSymbol(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransDefStatement

func TransDefStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

AST transformation of variable/constant definition statement

func TransDefineFuncSymbols

func TransDefineFuncSymbols(ctx ParserContext, asts AstSlice) (AstSlice, error)

TODO: Make the implementation of the three functions common. (TransPreScanFuncDefinitions, TransDefineLambdaSymbols, TransDefineFuncSymbols)

func TransDefineLambdaSymbols

func TransDefineLambdaSymbols(ctx ParserContext, asts AstSlice) (AstSlice, error)

TODO: Make the implementation of the three functions common. (TransPreScanFuncDefinitions, TransDefineLambdaSymbols, TransDefineFuncSymbols)

func TransDoWhileExpression

func TransDoWhileExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransForInExpression

func TransForInExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

TODO: scoped def expression

func TransFormalArgument

func TransFormalArgument(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransFormalArgumentForPreScan

func TransFormalArgumentForPreScan(ctx ParserContext, asts AstSlice) (AstSlice, error)

For two-pass parsing of function definitions

func TransFormalArgumentForTyping

func TransFormalArgumentForTyping(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransFuncStatement

func TransFuncStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransIfExpression

func TransIfExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransLambdaExpression

func TransLambdaExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransLoopExpression

func TransLoopExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransMultipleStatement

func TransMultipleStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransPreScanFuncDefinitions

func TransPreScanFuncDefinitions(ctx ParserContext, asts AstSlice) (AstSlice, error)

TODO: Make the implementation of the three functions common. (TransPreScanFuncDefinitions, TransDefineLambdaSymbols, TransDefineFuncSymbols) For two-pass parsing of function definitions

func TransReturnStatement

func TransReturnStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTradForExpression

func TransTradForExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTypeExpr

func TransTypeExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTypeFuncExpr

func TransTypeFuncExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTypeGenericsExpr

func TransTypeGenericsExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTypeObjectExpr

func TransTypeObjectExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransTypeSliceExpr

func TransTypeSliceExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)

func TransWhileExpression

func TransWhileExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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