MCPcopy Create free account

hub / github.com/chai2010/go-ast-book / functions

Functions346 in github.com/chai2010/go-ast-book

↓ 1 callersMethodgetGlobal
读全局变量
ch14/examples/06-import-func/run.go:40
↓ 1 callersMethodgetGlobal
读全局变量
ch14/examples/05-branch/run.go:30
↓ 1 callersMethodgetGlobal
读全局变量
ch14/examples/03-frame/run.go:30
↓ 1 callersMethodgetGlobal
读全局变量
ch14/examples/02-global-var/run.go:30
↓ 1 callersMethodinitGlobals
全局变量零值初始化
ch14/examples/04-bi-op/run.go:41
↓ 1 callersMethodinitGlobals
全局变量零值初始化
ch14/examples/06-import-func/run.go:51
↓ 1 callersMethodinitGlobals
全局变量零值初始化
ch14/examples/05-branch/run.go:41
↓ 1 callersMethodinitGlobals
全局变量零值初始化
ch14/examples/03-frame/run.go:41
↓ 1 callersMethodinitGlobals
全局变量零值初始化
ch14/examples/02-global-var/run.go:41
↓ 1 callersFunctionllPrint
(block *ir.Block, printf *ir.Func, format *ir.Global, args ...ssa.Value)
ch14/examples/01-hello/ll.go:48
↓ 1 callersFunctionnewCalcLexer
(data []byte)
appendix/a-goyacc/examples/calculator/lex.go:25
↓ 1 callersMethodprepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/04-bi-op/run.go:152
↓ 1 callersMethodprepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/06-import-func/run.go:192
↓ 1 callersMethodprepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/05-branch/run.go:178
↓ 1 callersMethodprepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/03-frame/run.go:149
↓ 1 callersMethodprepareCall
(fr *Frame, call *ssa.CallCommon)
ch14/examples/02-global-var/run.go:120
↓ 1 callersFunctionprocessExpr
这个函数递归调用自己,分析表达式,对子表达式的结果生成临时变量来保存。 第一个返回值是保存输入表达式结果的临时变量编号,可能被上一级表达式引用。 第二个返回值是输入表达式是否已被正确解析。
ch16/examples/wcc/wcc.go:136
↓ 1 callersFunctionprocessPrint
返回true表示正常生成代码 返回false表示源代码有语法错误
ch16/examples/wcc/wcc.go:222
↓ 1 callersFunctionremove
源文件是否包含错误 如果出现错误,则删除生成的.ll文件
ch16/examples/wcc/wcc.go:25
↓ 1 callersMethodrunFrame
(fr *Frame)
ch14/examples/04-bi-op/run.go:120
↓ 1 callersMethodrunFrame
(fr *Frame)
ch14/examples/06-import-func/run.go:134
↓ 1 callersMethodrunFrame
(fr *Frame)
ch14/examples/05-branch/run.go:120
↓ 1 callersMethodrunFrame
(fr *Frame)
ch14/examples/03-frame/run.go:120
↓ 1 callersFunctionrunFunc
(fn *ssa.Function)
ch14/examples/01-hello/run.go:13
↓ 1 callersMethodrunFunc
(fr *Frame, fn *ssa.Function)
ch14/examples/02-global-var/run.go:88
↓ 1 callersFunctionrunFuncBlock
运行Block, 返回下一个Block, 如果返回nil表示结束
ch14/examples/01-hello/run.go:27
↓ 1 callersMethodrunFuncBlock
运行Block
ch14/examples/02-global-var/run.go:100
↓ 1 callersMethodsetGlobal
设置全局变量
ch14/examples/04-bi-op/run.go:36
↓ 1 callersMethodsetGlobal
设置全局变量
ch14/examples/06-import-func/run.go:46
↓ 1 callersMethodsetGlobal
设置全局变量
ch14/examples/05-branch/run.go:36
↓ 1 callersMethodsetGlobal
设置全局变量
ch14/examples/03-frame/run.go:36
↓ 1 callersMethodsetGlobal
设置全局变量
ch14/examples/02-global-var/run.go:36
↓ 1 callersFunctionunop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/04-bi-op/waops/ops_un_op.go:18
↓ 1 callersFunctionunop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/06-import-func/waops/ops_un_op.go:18
↓ 1 callersFunctionunop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/05-branch/waops/ops_un_op.go:18
↓ 1 callersFunctionunop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/03-frame/waops/ops_un_op.go:18
↓ 1 callersFunctionunop
(instr *ssa.UnOp, x watypes.Value)
ch14/examples/02-global-var/waops/ops_un_op.go:18
↓ 1 callersFunctionwriteValue
(buf *bytes.Buffer, v Value)
ch14/examples/04-bi-op/watypes/value.go:31
↓ 1 callersFunctionwriteValue
(buf *bytes.Buffer, v Value)
ch14/examples/06-import-func/watypes/value.go:31
↓ 1 callersFunctionwriteValue
(buf *bytes.Buffer, v Value)
ch14/examples/05-branch/watypes/value.go:31
↓ 1 callersFunctionwriteValue
(buf *bytes.Buffer, v Value)
ch14/examples/03-frame/watypes/value.go:31
↓ 1 callersFunctionwriteValue
(buf *bytes.Buffer, v Value)
ch14/examples/02-global-var/watypes/value.go:31
↓ 1 callersFunctionzero
(t types.Type)
ch14/examples/04-bi-op/waops/ops_zero.go:18
↓ 1 callersFunctionzero
(t types.Type)
ch14/examples/06-import-func/waops/ops_zero.go:18
↓ 1 callersFunctionzero
(t types.Type)
ch14/examples/05-branch/waops/ops_zero.go:18
↓ 1 callersFunctionzero
(t types.Type)
ch14/examples/03-frame/waops/ops_zero.go:18
↓ 1 callersFunctionzero
(t types.Type)
ch14/examples/02-global-var/waops/ops_zero.go:18
MethodADD
()
appendix/b-antlr4/calc/calc_parser.go:417
MethodAccept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:285
MethodAccept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:361
MethodAccept
(visitor antlr.ParseTreeVisitor)
appendix/b-antlr4/calc/calc_parser.go:437
MethodAllExpression
()
appendix/b-antlr4/calc/calc_parser.go:318
MethodAllExpression
()
appendix/b-antlr4/calc/calc_parser.go:394
FunctionBinOp
实现二元运算
ch14/examples/04-bi-op/waops/ops_bin_op.go:14
FunctionBinOp
实现二元运算
ch14/examples/06-import-func/waops/ops_bin_op.go:14
FunctionBinOp
实现二元运算
ch14/examples/05-branch/waops/ops_bin_op.go:14
FunctionConstValue
从常量构造值
ch14/examples/04-bi-op/waops/ops_const_value.go:15
FunctionConstValue
从常量构造值
ch14/examples/06-import-func/waops/ops_const_value.go:15
FunctionConstValue
从常量构造值
ch14/examples/05-branch/waops/ops_const_value.go:15
FunctionConstValue
从常量构造值
ch14/examples/03-frame/waops/ops_const_value.go:15
FunctionConstValue
从常量构造值
ch14/examples/02-global-var/waops/ops_const_value.go:15
MethodDIV
()
appendix/b-antlr4/calc/calc_parser.go:345
MethodEOF
()
appendix/b-antlr4/calc/calc_parser.go:134
MethodEnterAddSub
EnterAddSub is called when production AddSub is entered.
appendix/b-antlr4/calc/calc_base_listener.go:43
MethodEnterEveryRule
EnterEveryRule is called when any rule is entered.
appendix/b-antlr4/calc/calc_base_listener.go:19
MethodEnterMulDiv
EnterMulDiv is called when production MulDiv is entered.
appendix/b-antlr4/calc/calc_base_listener.go:37
MethodEnterNumber
EnterNumber is called when production Number is entered.
appendix/b-antlr4/calc/calc_base_listener.go:31
MethodEnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:273
MethodEnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:349
MethodEnterRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:425
MethodEnterStart
EnterStart is called when production start is entered.
appendix/b-antlr4/calc/calc_base_listener.go:25
FunctionEquals
(t types.Type, x, y Value)
ch14/examples/04-bi-op/watypes/value.go:51
FunctionEquals
(t types.Type, x, y Value)
ch14/examples/06-import-func/watypes/value.go:51
FunctionEquals
(t types.Type, x, y Value)
ch14/examples/05-branch/watypes/value.go:51
MethodError
The parser calls this method on a parse error.
appendix/a-goyacc/examples/calculator/lex.go:85
MethodExitAddSub
(c *parser.AddSubContext)
appendix/b-antlr4/listener.go:24
MethodExitAddSub
ExitAddSub is called when production AddSub is exited.
appendix/b-antlr4/calc/calc_base_listener.go:46
MethodExitEveryRule
ExitEveryRule is called when any rule is exited.
appendix/b-antlr4/calc/calc_base_listener.go:22
MethodExitMulDiv
(c *parser.MulDivContext)
appendix/b-antlr4/listener.go:14
MethodExitMulDiv
ExitMulDiv is called when production MulDiv is exited.
appendix/b-antlr4/calc/calc_base_listener.go:40
MethodExitNumber
(c *parser.NumberContext)
appendix/b-antlr4/listener.go:34
MethodExitNumber
ExitNumber is called when production Number is exited.
appendix/b-antlr4/calc/calc_base_listener.go:34
MethodExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:279
MethodExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:355
MethodExitRule
(listener antlr.ParseTreeListener)
appendix/b-antlr4/calc/calc_parser.go:431
MethodExitStart
ExitStart is called when production start is exited.
appendix/b-antlr4/calc/calc_base_listener.go:28
MethodExpression
()
appendix/b-antlr4/calc/calc_parser.go:124
MethodExpression
(i int)
appendix/b-antlr4/calc/calc_parser.go:331
MethodExpression
(i int)
appendix/b-antlr4/calc/calc_parser.go:407
MethodGetOp
()
appendix/b-antlr4/calc/calc_parser.go:386
MethodGetParser
GetParser returns the parser.
appendix/b-antlr4/calc/calc_parser.go:91
MethodGetParser
()
appendix/b-antlr4/calc/calc_parser.go:122
MethodGetParser
GetParser returns the parser.
appendix/b-antlr4/calc/calc_parser.go:206
MethodGetParser
()
appendix/b-antlr4/calc/calc_parser.go:237
MethodGetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:138
MethodGetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:243
MethodGetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:265
MethodGetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:314
MethodGetRuleContext
()
appendix/b-antlr4/calc/calc_parser.go:390
MethodImport
(path string)
ch12/examples/01/main.go:86
← previousnext →101–200 of 346, ranked by callers