Documentation
¶
Index ¶
- Variables
- func TransBreakStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransContinueStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransDefForInSymbol(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransDefStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransDefineFuncSymbols(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransDefineLambdaSymbols(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransDoWhileExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransForInExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransFormalArgument(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransFormalArgumentForPreScan(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransFormalArgumentForTyping(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransFuncStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransIfExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransLambdaExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransLoopExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransMultipleStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransPreScanFuncDefinitions(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransReturnStatement(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTradForExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTypeExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTypeFuncExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTypeGenericsExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTypeObjectExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransTypeSliceExpr(ctx ParserContext, asts AstSlice) (AstSlice, error)
- func TransWhileExpression(ctx ParserContext, asts AstSlice) (AstSlice, error)
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.
Source Files
¶
- promotion.go
- rule_01.go
- rule_03.go
- rule_04a.go
- rule_04b.go
- rule_06.go
- rule_07.go
- rule_08.go
- rule_09.go
- rule_10.go
- rule_11.go
- rule_12.go
- rule_13.go
- rule_14.go
- rule_15.go
- rule_16.go
- rule_17.go
- rule_18.go
- rule_20.go
- rules.go
- trans_defstmt.go
- trans_dowhileexpr.go
- trans_forexpr.go
- trans_func.go
- trans_ifexpr.go
- trans_loopexpr.go
- trans_multistmt.go
- trans_retstmt.go
- trans_typing.go
- trans_whileexpr.go
- typing.go
- util.go
Click to show internal directories.
Click to hide internal directories.