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
↓ 1 callers
Method
getGlobal
读全局变量
ch14/examples/06-import-func/run.go:40
↓ 1 callers
Method
getGlobal
读全局变量
ch14/examples/05-branch/run.go:30
↓ 1 callers
Method
getGlobal
读全局变量
ch14/examples/03-frame/run.go:30
↓ 1 callers
Method
getGlobal
读全局变量
ch14/examples/02-global-var/run.go:30
↓ 1 callers
Method
initGlobals
全局变量零值初始化
ch14/examples/04-bi-op/run.go:41
↓ 1 callers
Method
initGlobals
全局变量零值初始化
ch14/examples/06-import-func/run.go:51
↓ 1 callers
Method
initGlobals
全局变量零值初始化
ch14/examples/05-branch/run.go:41
↓ 1 callers
Method
initGlobals
全局变量零值初始化
ch14/examples/03-frame/run.go:41
↓ 1 callers
Method
initGlobals
全局变量零值初始化
ch14/examples/02-global-var/run.go:41
↓ 1 callers
Function
llPrint
(block *ir.Block, printf *ir.Func, format *ir.Global, args ...ssa.Value)
ch14/examples/01-hello/ll.go:48
↓ 1 callers
Function
newCalcLexer
(data []byte)
appendix/a-goyacc/examples/calculator/lex.go:25
↓ 1 callers
Method
prepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/04-bi-op/run.go:152
↓ 1 callers
Method
prepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/06-import-func/run.go:192
↓ 1 callers
Method
prepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/05-branch/run.go:178
↓ 1 callers
Method
prepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/03-frame/run.go:149
↓ 1 callers
Method
prepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/02-global-var/run.go:120
↓ 1 callers
Function
processExpr
这个函数递归调用自己,分析表达式,对子表达式的结果生成临时变量来保存。 第一个返回值是保存输入表达式结果的临时变量编号,可能被上一级表达式引用。 第二个返回值是输入表达式是否已被正确解析。
ch16/examples/wcc/wcc.go:136
↓ 1 callers
Function
processPrint
返回true表示正常生成代码 返回false表示源代码有语法错误
ch16/examples/wcc/wcc.go:222
↓ 1 callers
Function
remove
源文件是否包含错误 如果出现错误,则删除生成的.ll文件
ch16/examples/wcc/wcc.go:25
↓ 1 callers
Method
runFrame
(fr *Frame)
ch14/examples/04-bi-op/run.go:120
↓ 1 callers
Method
runFrame
(fr *Frame)
ch14/examples/06-import-func/run.go:134
↓ 1 callers
Method
runFrame
(fr *Frame)
ch14/examples/05-branch/run.go:120
↓ 1 callers
Method
runFrame
(fr *Frame)
ch14/examples/03-frame/run.go:120
↓ 1 callers
Function
runFunc
(fn *ssa.Function)
ch14/examples/01-hello/run.go:13
↓ 1 callers
Method
runFunc
(fr *Frame, fn *ssa.Function)
ch14/examples/02-global-var/run.go:88
↓ 1 callers
Function
runFuncBlock
运行Block, 返回下一个Block, 如果返回nil表示结束
ch14/examples/01-hello/run.go:27
↓ 1 callers
Method
runFuncBlock
运行Block
ch14/examples/02-global-var/run.go:100
↓ 1 callers
Method
setGlobal
设置全局变量
ch14/examples/04-bi-op/run.go:36
↓ 1 callers
Method
setGlobal
设置全局变量
ch14/examples/06-import-func/run.go:46
↓ 1 callers
Method
setGlobal
设置全局变量
ch14/examples/05-branch/run.go:36
↓ 1 callers
Method
setGlobal
设置全局变量
ch14/examples/03-frame/run.go:36
↓ 1 callers
Method
setGlobal
设置全局变量
ch14/examples/02-global-var/run.go:36
↓ 1 callers
Function
unop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/04-bi-op/waops/ops_un_op.go:18
↓ 1 callers
Function
unop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/06-import-func/waops/ops_un_op.go:18
↓ 1 callers
Function
unop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/05-branch/waops/ops_un_op.go:18
↓ 1 callers
Function
unop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/03-frame/waops/ops_un_op.go:18
↓ 1 callers
Function
unop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/02-global-var/waops/ops_un_op.go:18
↓ 1 callers
Function
writeValue
(buf *bytes.Buffer, v Value)
ch14/examples/04-bi-op/watypes/value.go:31
↓ 1 callers
Function
writeValue
(buf *bytes.Buffer, v Value)
ch14/examples/06-import-func/watypes/value.go:31
↓ 1 callers
Function
writeValue
(buf *bytes.Buffer, v Value)
ch14/examples/05-branch/watypes/value.go:31
↓ 1 callers
Function
writeValue
(buf *bytes.Buffer, v Value)
ch14/examples/03-frame/watypes/value.go:31
↓ 1 callers
Function
writeValue
(buf *bytes.Buffer, v Value)
ch14/examples/02-global-var/watypes/value.go:31
↓ 1 callers
Function
zero
(t types.Type)
ch14/examples/04-bi-op/waops/ops_zero.go:18
↓ 1 callers
Function
zero
(t types.Type)
ch14/examples/06-import-func/waops/ops_zero.go:18
↓ 1 callers
Function
zero
(t types.Type)
ch14/examples/05-branch/waops/ops_zero.go:18
↓ 1 callers
Function
zero
(t types.Type)
ch14/examples/03-frame/waops/ops_zero.go:18
↓ 1 callers
Function
zero
(t types.Type)
ch14/examples/02-global-var/waops/ops_zero.go:18
Method
ADD
()
appendix/b-antlr4/calc/calc_parser.go:417
Method
Accept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:285
Method
Accept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:361
Method
Accept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:437
Method
AllExpression
()
appendix/b-antlr4/calc/calc_parser.go:318
Method
AllExpression
()
appendix/b-antlr4/calc/calc_parser.go:394
Function
BinOp
实现二元运算
ch14/examples/04-bi-op/waops/ops_bin_op.go:14
Function
BinOp
实现二元运算
ch14/examples/06-import-func/waops/ops_bin_op.go:14
Function
BinOp
实现二元运算
ch14/examples/05-branch/waops/ops_bin_op.go:14
Function
ConstValue
从常量构造值
ch14/examples/04-bi-op/waops/ops_const_value.go:15
Function
ConstValue
从常量构造值
ch14/examples/06-import-func/waops/ops_const_value.go:15
Function
ConstValue
从常量构造值
ch14/examples/05-branch/waops/ops_const_value.go:15
Function
ConstValue
从常量构造值
ch14/examples/03-frame/waops/ops_const_value.go:15
Function
ConstValue
从常量构造值
ch14/examples/02-global-var/waops/ops_const_value.go:15
Method
DIV
()
appendix/b-antlr4/calc/calc_parser.go:345
Method
EOF
()
appendix/b-antlr4/calc/calc_parser.go:134
Method
EnterAddSub
EnterAddSub is called when production AddSub is entered.
appendix/b-antlr4/calc/calc_base_listener.go:43
Method
EnterEveryRule
EnterEveryRule is called when any rule is entered.
appendix/b-antlr4/calc/calc_base_listener.go:19
Method
EnterMulDiv
EnterMulDiv is called when production MulDiv is entered.
appendix/b-antlr4/calc/calc_base_listener.go:37
Method
EnterNumber
EnterNumber is called when production Number is entered.
appendix/b-antlr4/calc/calc_base_listener.go:31
Method
EnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:273
Method
EnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:349
Method
EnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:425
Method
EnterStart
EnterStart is called when production start is entered.
appendix/b-antlr4/calc/calc_base_listener.go:25
Function
Equals
(t types.Type, x, y Value)
ch14/examples/04-bi-op/watypes/value.go:51
Function
Equals
(t types.Type, x, y Value)
ch14/examples/06-import-func/watypes/value.go:51
Function
Equals
(t types.Type, x, y Value)
ch14/examples/05-branch/watypes/value.go:51
Method
Error
The parser calls this method on a parse error.
appendix/a-goyacc/examples/calculator/lex.go:85
Method
ExitAddSub
(c *parser.AddSubContext)
appendix/b-antlr4/listener.go:24
Method
ExitAddSub
ExitAddSub is called when production AddSub is exited.
appendix/b-antlr4/calc/calc_base_listener.go:46
Method
ExitEveryRule
ExitEveryRule is called when any rule is exited.
appendix/b-antlr4/calc/calc_base_listener.go:22
Method
ExitMulDiv
(c *parser.MulDivContext)
appendix/b-antlr4/listener.go:14
Method
ExitMulDiv
ExitMulDiv is called when production MulDiv is exited.
appendix/b-antlr4/calc/calc_base_listener.go:40
Method
ExitNumber
(c *parser.NumberContext)
appendix/b-antlr4/listener.go:34
Method
ExitNumber
ExitNumber is called when production Number is exited.
appendix/b-antlr4/calc/calc_base_listener.go:34
Method
ExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:279
Method
ExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:355
Method
ExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:431
Method
ExitStart
ExitStart is called when production start is exited.
appendix/b-antlr4/calc/calc_base_listener.go:28
Method
Expression
()
appendix/b-antlr4/calc/calc_parser.go:124
Method
Expression
(i int)
appendix/b-antlr4/calc/calc_parser.go:331
Method
Expression
(i int)
appendix/b-antlr4/calc/calc_parser.go:407
Method
GetOp
()
appendix/b-antlr4/calc/calc_parser.go:386
Method
GetParser
GetParser returns the parser.
appendix/b-antlr4/calc/calc_parser.go:91
Method
GetParser
()
appendix/b-antlr4/calc/calc_parser.go:122
Method
GetParser
GetParser returns the parser.
appendix/b-antlr4/calc/calc_parser.go:206
Method
GetParser
()
appendix/b-antlr4/calc/calc_parser.go:237
Method
GetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:138
Method
GetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:243
Method
GetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:265
Method
GetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:314
Method
GetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:390
Method
Import
(path string)
ch12/examples/01/main.go:86
← previous
next →
101–200 of 346, ranked by callers