Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chai2010/go-ast-book
/ functions
Functions
346 in github.com/chai2010/go-ast-book
⨍
Functions
346
◇
Types & classes
50
↓ 10 callers
Method
pop
()
appendix/b-antlr4/stack.go:10
↓ 10 callers
Method
push
(i int)
appendix/b-antlr4/stack.go:7
↓ 9 callers
Method
getValue
读取值(nil/全局变量/虚拟寄存器等)
ch14/examples/06-import-func/run.go:88
↓ 9 callers
Method
getValue
读取值(nil/全局变量/虚拟寄存器等)
ch14/examples/05-branch/run.go:78
↓ 7 callers
Method
getValue
读取值(nil/全局变量/虚拟寄存器等)
ch14/examples/04-bi-op/run.go:78
↓ 6 callers
Function
calcTokname
(c int)
appendix/a-goyacc/examples/calculator/calc.y.go:163
↓ 5 callers
Function
Eval
(exp ast.Expr, vars map[string]float64)
ch3/examples/02/main.go:18
↓ 5 callers
Function
Eval
(exp ast.Expr)
ch3/examples/01/main.go:16
↓ 5 callers
Method
Expression
()
appendix/b-antlr4/calc/calc_parser.go:447
↓ 5 callers
Method
getValue
读取值(nil/全局变量/虚拟寄存器等)
ch14/examples/03-frame/run.go:78
↓ 5 callers
Method
visitRule
(node antlr.RuleNode)
appendix/b-antlr4/visitor.go:15
↓ 4 callers
Method
GetOp
()
appendix/b-antlr4/calc/calc_parser.go:310
↓ 4 callers
Method
getValue
读取值(nil/全局变量/虚拟寄存器等)
ch14/examples/02-global-var/run.go:69
↓ 3 callers
Method
CopyFrom
(ctx *ExpressionContext)
appendix/b-antlr4/calc/calc_parser.go:239
↓ 3 callers
Method
LoadPackage
(path string)
ch13/examples/01/main.go:81
↓ 3 callers
Function
NewEmptyExpressionContext
()
appendix/b-antlr4/calc/calc_parser.go:217
↓ 3 callers
Function
NewExpressionContext
(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int)
appendix/b-antlr4/calc/calc_parser.go:226
↓ 3 callers
Function
calcStatname
(s int)
appendix/a-goyacc/examples/calculator/calc.y.go:172
↓ 2 callers
Method
Accept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:158
↓ 2 callers
Method
LoadPackage
(path string)
ch12/examples/01/main.go:65
↓ 2 callers
Method
LoadPackage
(path string)
ch13/examples/02/main.go:55
↓ 2 callers
Method
LoadPackage
(path string)
ch11/examples/04/main.go:59
↓ 2 callers
Method
Start
()
appendix/b-antlr4/calc/calc_parser.go:168
↓ 2 callers
Function
calclex1
(lex calcLexer, lval *calcSymType)
appendix/a-goyacc/examples/calculator/calc.y.go:245
↓ 2 callers
Method
expression
(_p int)
appendix/b-antlr4/calc/calc_parser.go:451
↓ 2 callers
Method
runFunc
(fn watypes.Value, args []watypes.Value)
ch14/examples/04-bi-op/run.go:97
↓ 2 callers
Method
runFunc
(fn watypes.Value, args []watypes.Value)
ch14/examples/06-import-func/run.go:107
↓ 2 callers
Method
runFunc
(fn watypes.Value, args []watypes.Value)
ch14/examples/05-branch/run.go:97
↓ 2 callers
Method
runFunc
(fn watypes.Value, args []watypes.Value)
ch14/examples/03-frame/run.go:97
↓ 1 callers
Function
Deref
对于指针获取指针指向的类型, 或者返回当前类型.
ch14/examples/04-bi-op/waops/utils.go:10
↓ 1 callers
Function
Deref
对于指针获取指针指向的类型, 或者返回当前类型.
ch14/examples/06-import-func/waops/utils.go:10
↓ 1 callers
Function
Deref
对于指针获取指针指向的类型, 或者返回当前类型.
ch14/examples/05-branch/waops/utils.go:10
↓ 1 callers
Function
Deref
对于指针获取指针指向的类型, 或者返回当前类型.
ch14/examples/03-frame/waops/utils.go:10
↓ 1 callers
Function
Deref
对于指针获取指针指向的类型, 或者返回当前类型.
ch14/examples/02-global-var/waops/utils.go:10
↓ 1 callers
Method
EnterAddSub
EnterAddSub is called when entering the AddSub production.
appendix/b-antlr4/calc/calc_listener.go:21
↓ 1 callers
Method
EnterMulDiv
EnterMulDiv is called when entering the MulDiv production.
appendix/b-antlr4/calc/calc_listener.go:18
↓ 1 callers
Method
EnterNumber
EnterNumber is called when entering the Number production.
appendix/b-antlr4/calc/calc_listener.go:15
↓ 1 callers
Method
EnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:146
↓ 1 callers
Method
EnterStart
EnterStart is called when entering the start production.
appendix/b-antlr4/calc/calc_listener.go:12
↓ 1 callers
Method
Error
(s string)
appendix/a-goyacc/examples/calculator/calc.y.go:139
↓ 1 callers
Function
EvalBinaryExpr
(exp *ast.BinaryExpr, vars map[string]float64)
ch3/examples/02/main.go:31
↓ 1 callers
Function
EvalBinaryExpr
(exp *ast.BinaryExpr)
ch3/examples/01/main.go:27
↓ 1 callers
Method
ExitAddSub
ExitAddSub is called when exiting the AddSub production.
appendix/b-antlr4/calc/calc_listener.go:33
↓ 1 callers
Method
ExitMulDiv
ExitMulDiv is called when exiting the MulDiv production.
appendix/b-antlr4/calc/calc_listener.go:30
↓ 1 callers
Method
ExitNumber
ExitNumber is called when exiting the Number production.
appendix/b-antlr4/calc/calc_listener.go:27
↓ 1 callers
Method
ExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:152
↓ 1 callers
Method
ExitStart
ExitStart is called when exiting the start production.
appendix/b-antlr4/calc/calc_listener.go:24
↓ 1 callers
Method
Expression_Sempred
(localctx antlr.RuleContext, predIndex int)
appendix/b-antlr4/calc/calc_parser.go:590
↓ 1 callers
Method
Lex
(lval *calcSymType)
appendix/a-goyacc/examples/calculator/calc.y.go:138
↓ 1 callers
Method
NUMBER
()
appendix/b-antlr4/calc/calc_parser.go:269
↓ 1 callers
Function
NewAddSubContext
(parser antlr.Parser, ctx antlr.ParserRuleContext)
appendix/b-antlr4/calc/calc_parser.go:376
↓ 1 callers
Function
NewEngine
(mainpkg *ssa.Package)
ch14/examples/04-bi-op/run.go:21
↓ 1 callers
Function
NewEngine
(mainpkg *ssa.Package, funcs map[string]UserFunc)
ch14/examples/06-import-func/run.go:26
↓ 1 callers
Function
NewEngine
(mainpkg *ssa.Package)
ch14/examples/05-branch/run.go:21
↓ 1 callers
Function
NewEngine
(mainpkg *ssa.Package)
ch14/examples/03-frame/run.go:21
↓ 1 callers
Function
NewEngine
(mainpkg *ssa.Package)
ch14/examples/02-global-var/run.go:21
↓ 1 callers
Function
NewFrame
()
ch14/examples/04-bi-op/run.go:70
↓ 1 callers
Function
NewFrame
()
ch14/examples/06-import-func/run.go:80
↓ 1 callers
Function
NewFrame
()
ch14/examples/05-branch/run.go:70
↓ 1 callers
Function
NewFrame
()
ch14/examples/03-frame/run.go:70
↓ 1 callers
Function
NewFrame
()
ch14/examples/02-global-var/run.go:61
↓ 1 callers
Function
NewMulDivContext
(parser antlr.Parser, ctx antlr.ParserRuleContext)
appendix/b-antlr4/calc/calc_parser.go:300
↓ 1 callers
Function
NewNumberContext
(parser antlr.Parser, ctx antlr.ParserRuleContext)
appendix/b-antlr4/calc/calc_parser.go:255
↓ 1 callers
Function
NewProgram
(fs map[string]string)
ch12/examples/01/main.go:56
↓ 1 callers
Function
NewProgram
(fs map[string]string)
ch13/examples/02/main.go:45
↓ 1 callers
Function
NewProgram
(fs map[string]string)
ch13/examples/01/main.go:71
↓ 1 callers
Function
NewProgram
(fs map[string]string)
ch11/examples/04/main.go:50
↓ 1 callers
Function
NewStartContext
(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int)
appendix/b-antlr4/calc/calc_parser.go:111
↓ 1 callers
Method
Parse
(calcLexer)
appendix/a-goyacc/examples/calculator/calc.y.go:143
↓ 1 callers
Method
VisitAddSub
Visit a parse tree produced by CalcParser#AddSub.
appendix/b-antlr4/calc/calc_visitor.go:21
↓ 1 callers
Method
VisitMulDiv
Visit a parse tree produced by CalcParser#MulDiv.
appendix/b-antlr4/calc/calc_visitor.go:18
↓ 1 callers
Method
VisitNumber
Visit a parse tree produced by CalcParser#Number.
appendix/b-antlr4/calc/calc_visitor.go:15
↓ 1 callers
Method
VisitStart
Visit a parse tree produced by CalcParser#start.
appendix/b-antlr4/calc/calc_visitor.go:12
↓ 1 callers
Function
Zero
生成零值
ch14/examples/04-bi-op/waops/ops_zero.go:14
↓ 1 callers
Function
Zero
生成零值
ch14/examples/06-import-func/waops/ops_zero.go:14
↓ 1 callers
Function
Zero
生成零值
ch14/examples/05-branch/waops/ops_zero.go:14
↓ 1 callers
Function
Zero
生成零值
ch14/examples/03-frame/waops/ops_zero.go:14
↓ 1 callers
Function
Zero
生成零值
ch14/examples/02-global-var/waops/ops_zero.go:14
↓ 1 callers
Function
binop
(op token.Token, t types.Type, x, y watypes.Value)
ch14/examples/04-bi-op/waops/ops_bin_op.go:18
↓ 1 callers
Function
binop
(op token.Token, t types.Type, x, y watypes.Value)
ch14/examples/06-import-func/waops/ops_bin_op.go:18
↓ 1 callers
Function
binop
(op token.Token, t types.Type, x, y watypes.Value)
ch14/examples/05-branch/waops/ops_bin_op.go:18
↓ 1 callers
Function
calcErrorMessage
(state, lookAhead int)
appendix/a-goyacc/examples/calculator/calc.y.go:181
↓ 1 callers
Function
calcNewParser
()
appendix/a-goyacc/examples/calculator/calc.y.go:157
↓ 1 callers
Function
calcParse
(calclex calcLexer)
appendix/a-goyacc/examples/calculator/calc.y.go:280
↓ 1 callers
Method
call
(ins *ssa.Call, args []watypes.Value)
ch14/examples/02-global-var/run.go:129
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args []watypes.Value)
ch14/examples/04-bi-op/run.go:164
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args []watypes.Value)
ch14/examples/06-import-func/run.go:204
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args []watypes.Value)
ch14/examples/05-branch/run.go:190
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args []watypes.Value)
ch14/examples/03-frame/run.go:161
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args ...ssa.Value)
ch14/examples/01-hello/run.go:66
↓ 1 callers
Function
callBuiltin
(fn *ssa.Builtin, args []watypes.Value)
ch14/examples/02-global-var/run.go:141
↓ 1 callers
Function
constValue
(c *ssa.Const)
ch14/examples/04-bi-op/waops/ops_const_value.go:19
↓ 1 callers
Function
constValue
(c *ssa.Const)
ch14/examples/06-import-func/waops/ops_const_value.go:19
↓ 1 callers
Function
constValue
(c *ssa.Const)
ch14/examples/05-branch/waops/ops_const_value.go:19
↓ 1 callers
Function
constValue
(c *ssa.Const)
ch14/examples/03-frame/waops/ops_const_value.go:19
↓ 1 callers
Function
constValue
(c *ssa.Const)
ch14/examples/02-global-var/waops/ops_const_value.go:19
↓ 1 callers
Function
doCall
(ins *ssa.Call)
ch14/examples/01-hello/run.go:41
↓ 1 callers
Function
doReturn
(ins *ssa.Return)
ch14/examples/01-hello/run.go:56
↓ 1 callers
Function
doUnknown
(ins ssa.Instruction)
ch14/examples/01-hello/run.go:60
↓ 1 callers
Method
getGlobal
读全局变量
ch14/examples/04-bi-op/run.go:30
next →
1–100 of 346, ranked by callers