MCPcopy Create free account

hub / github.com/MauriceGit/compiler / functions

Functions362 in github.com/MauriceGit/compiler

↓ 2 callersMethodgetExpressionTypes
(s *SymbolTable)
parser.go:295
↓ 2 callersMethodgetLocalFun
(name string, paramTypes []ComplexType, strict bool)
semanticAnalyzer.go:64
↓ 2 callersFunctionnewFunCall
(name string, exprs []Expression)
parser_test.go:270
↓ 2 callersFunctionnewSimpleTypeList
(ts []Type)
parser_test.go:279
↓ 2 callersMethodnext
()
parser.go:803
↓ 2 callersFunctionparse
(tokens chan Token)
parser.go:2284
↓ 2 callersFunctionparseArgList
(tokens *TokenChannel, expectSeparator bool)
parser.go:1918
↓ 2 callersFunctionparseConstant
(tokens *TokenChannel)
parser.go:1106
↓ 2 callersFunctionparseDirectAccess
(tokens *TokenChannel)
parser.go:977
↓ 2 callersFunctionparseFunCall
(tokens *TokenChannel)
parser.go:1114
↓ 2 callersFunctionparseVariable
(tokens *TokenChannel)
parser.go:1019
↓ 2 callersMethodsetLoopJumpLabels
(br, cont string)
semanticAnalyzer.go:128
↓ 2 callersFunctionstringToType
(s string)
parser.go:616
↓ 1 callersMethodaddArrayAppendFunction
(asm *ASM)
codeGeneration.go:2164
↓ 1 callersMethodaddArrayCapFunction
(asm *ASM)
codeGeneration.go:1788
↓ 1 callersMethodaddArrayClearFunction
(asm *ASM)
codeGeneration.go:1993
↓ 1 callersMethodaddArrayExtendFunction
(asm *ASM)
codeGeneration.go:2031
↓ 1 callersMethodaddArrayFreeFunction
(asm *ASM)
codeGeneration.go:1923
↓ 1 callersMethodaddArrayLenFunction
(asm *ASM)
codeGeneration.go:1761
↓ 1 callersMethodaddArrayResetFunction
(asm *ASM)
codeGeneration.go:1963
↓ 1 callersMethodaddCharFunction
(asm *ASM)
codeGeneration.go:1842
↓ 1 callersMethodaddFloatFunction
(asm *ASM)
codeGeneration.go:1896
↓ 1 callersMethodaddIntFromCharFunction
(asm *ASM)
codeGeneration.go:1869
↓ 1 callersMethodaddIntFromFloatFunction
(asm *ASM)
codeGeneration.go:1815
↓ 1 callersMethodaddInternalPrintCharFunction
(asm *ASM)
codeGeneration.go:1347
↓ 1 callersMethodaddLines
(commands [][3]string)
codeGeneration.go:80
↓ 1 callersMethodaddPrintCharFunction
(asm *ASM)
codeGeneration.go:1393
↓ 1 callersMethodaddPrintCharLnFunction
(asm *ASM)
codeGeneration.go:1434
↓ 1 callersMethodaddPrintFloatFunction
(asm *ASM)
codeGeneration.go:1609
↓ 1 callersMethodaddPrintFloatLnFunction
(asm *ASM)
codeGeneration.go:1714
↓ 1 callersMethodaddPrintIntFunction
(asm *ASM)
codeGeneration.go:1480
↓ 1 callersMethodaddPrintIntLnFunction
(asm *ASM)
codeGeneration.go:1563
↓ 1 callersFunctionanalyzeArrayDecl
(a Array, symbolTable *SymbolTable)
semanticAnalyzer.go:640
↓ 1 callersFunctionanalyzeBinaryOp
(binaryOp BinaryOp, symbolTable *SymbolTable)
semanticAnalyzer.go:301
↓ 1 callersFunctionanalyzeBreak
(br Break, symbolTable *SymbolTable)
semanticAnalyzer.go:1111
↓ 1 callersFunctionanalyzeCondition
(condition Condition, symbolTable *SymbolTable)
semanticAnalyzer.go:821
↓ 1 callersFunctionanalyzeContinue
(cont Continue, symbolTable *SymbolTable)
semanticAnalyzer.go:1118
↓ 1 callersFunctionanalyzeFunCallReturnTypes
Sometimes we need a bit of special handling to work with system-side generic functions like 'append()', to keep our type system going on the programme
semanticAnalyzer.go:495
↓ 1 callersFunctionanalyzeFunction
(fun Function, symbolTable *SymbolTable)
semanticAnalyzer.go:1023
↓ 1 callersFunctionanalyzeLoop
(loop Loop, symbolTable *SymbolTable)
semanticAnalyzer.go:921
↓ 1 callersFunctionanalyzeRangedLoop
(loop RangedLoop, symbolTable *SymbolTable)
semanticAnalyzer.go:977
↓ 1 callersFunctionanalyzeReturn
(ret Return, symbolTable *SymbolTable)
semanticAnalyzer.go:1075
↓ 1 callersFunctionanalyzeStatement
(statement Statement, symbolTable *SymbolTable)
semanticAnalyzer.go:1176
↓ 1 callersFunctionanalyzeStructDef
(st StructDef, symbolTable *SymbolTable)
semanticAnalyzer.go:1144
↓ 1 callersFunctionanalyzeSwitch
(sc Switch, symbolTable *SymbolTable)
semanticAnalyzer.go:860
↓ 1 callersFunctionanalyzeUnaryOp
(unaryOp UnaryOp, symbolTable *SymbolTable)
semanticAnalyzer.go:249
↓ 1 callersFunctionanalyzeVariable
(e Variable, symbolTable *SymbolTable)
semanticAnalyzer.go:686
↓ 1 callersFunctionassemble
(asm ASM, source, executable string)
compiler.go:14
↓ 1 callersFunctionbinaryOperationNumber
binaryOperationFloat executes the operation on the two registers and writes the result into rLeft!
codeGeneration.go:388
↓ 1 callersFunctioncompareASTs
(generated AST, expected AST)
parser_test.go:207
↓ 1 callersFunctioncompareArray
(v1, v2 Array)
parser_test.go:55
↓ 1 callersFunctioncompareStatement
(s1, s2 Statement)
parser_test.go:145
↓ 1 callersMethodeq
(e2 Constant)
parser_test.go:8
↓ 1 callersMethodextractAllFunctionVariables
We need the isRoot flag to make sure, that we only expect parameters on the stack, that are actually parameters, not variables of same name/type deepe
codeGeneration.go:1043
↓ 1 callersMethodfunctionReturnAnalysis
()
functionReturnAnalysis.go:66
↓ 1 callersFunctiongenerateStructExprCode
(asm *ASM, s *SymbolTable, f FunCall)
codeGeneration.go:576
↓ 1 callersFunctiongetCommand
(t Type, op Operator)
codeGeneration.go:216
↓ 1 callersFunctiongetCommandBool
(op Operator)
codeGeneration.go:150
↓ 1 callersFunctiongetCommandChar
(op Operator)
codeGeneration.go:145
↓ 1 callersFunctiongetCommandFloat
(op Operator)
codeGeneration.go:113
↓ 1 callersFunctiongetCommandInt
(op Operator)
codeGeneration.go:129
↓ 1 callersFunctiongetConstType
(c string)
parser.go:1080
↓ 1 callersFunctiongetConvenienceFunctions
()
compiler.go:112
↓ 1 callersMethodgetExpressionTypes
(s *SymbolTable)
parser.go:291
↓ 1 callersMethodgetExpressionTypes
(s *SymbolTable)
parser.go:298
↓ 1 callersMethodgetFunctionCode
(asmName string)
codeGeneration.go:87
↓ 1 callersFunctiongetJumpType
(op Operator)
codeGeneration.go:95
↓ 1 callersMethodgetLocalVars
()
semanticAnalyzer.go:27
↓ 1 callersMethodgetLoopBreakLabel
()
semanticAnalyzer.go:133
↓ 1 callersMethodgetLoopContinueLabel
()
semanticAnalyzer.go:140
↓ 1 callersFunctiongetMoreIntRegister
()
codeGeneration.go:174
↓ 1 callersMethodgetResultCount
()
parser.go:320
↓ 1 callersMethodisDirectlyAccessed
()
parser.go:336
↓ 1 callersMethodisLocalFun
(name string, paramTypes []ComplexType)
semanticAnalyzer.go:82
↓ 1 callersMethodisLocalVar
isLocalVar only searches the immediate local symbol varTable
semanticAnalyzer.go:19
↓ 1 callersFunctionisTypeString
(s string)
parser.go:634
↓ 1 callersFunctionparseArrayExpression
(tokens *TokenChannel)
parser.go:1173
↓ 1 callersFunctionparseBreak
(tokens *TokenChannel)
parser.go:2076
↓ 1 callersFunctionparseByte
(program []byte)
lexer.go:85
↓ 1 callersFunctionparseCases
(tokens *TokenChannel, valueSwitch bool)
parser.go:1625
↓ 1 callersFunctionparseCondition
if ::= 'if' exp '{' [stat] '}' [else '{' [stat] '}']
parser.go:1564
↓ 1 callersFunctionparseContinue
(tokens *TokenChannel)
parser.go:2089
↓ 1 callersFunctionparseFunction
(tokens *TokenChannel)
parser.go:1995
↓ 1 callersFunctionparseLoop
(tokens *TokenChannel)
parser.go:1803
↓ 1 callersFunctionparseRangedLoop
parseRangedLoop is special in the case, that we have multiple statements that start with 'for id, id'. So we have to push multiple tokens back to the
parser.go:1731
↓ 1 callersFunctionparseReturn
(tokens *TokenChannel)
parser.go:2058
↓ 1 callersFunctionparseSimpleExpression
func parseStructExpr(tokens *TokenChannel) (st StructExpr, err error) { name, startRow, startCol, ok := tokens.expectType(TOKEN_IDENTIFIER) if !ok {
parser.go:1281
↓ 1 callersFunctionparseStruct
(tokens *TokenChannel)
parser.go:2101
↓ 1 callersFunctionparseSwitch
(tokens *TokenChannel)
parser.go:1687
↓ 1 callersFunctionparseTypeList
(tokens *TokenChannel)
parser.go:1966
↓ 1 callersFunctionparseUnaryExpression
(tokens *TokenChannel)
parser.go:1359
↓ 1 callersFunctionparseVarList
(tokens *TokenChannel)
parser.go:1048
↓ 1 callersFunctionpreprocess
(program []byte)
compiler.go:142
↓ 1 callersFunctionsemanticAnalysis
analyzeTypes traverses the tree and analyzes variables with their corresponding type recursively from expressions! returns an error if we have a type
semanticAnalyzer.go:1282
↓ 1 callersMethodsetFunEpilogueLabel
(v string, label string, paramTypes []ComplexType)
semanticAnalyzer.go:181
↓ 1 callersMethodsetFunReturnStackPointer
(v string, offset int, paramTypes []ComplexType)
semanticAnalyzer.go:226
↓ 1 callersFunctionsetSystemFunctionUsage
Set usage status for system the functions above. This can be made nicer and general, but the effort is not worth it right now. Maybe at a later point.
semanticAnalyzer.go:1241
↓ 1 callersMethodsetType
(v string, members []StructMem)
semanticAnalyzer.go:38
↓ 1 callersMethodsetVarAsmOffset
(v string, offset int)
semanticAnalyzer.go:114
↓ 1 callersFunctionstructMemToTypeList
(mems []StructMem)
semanticAnalyzer.go:558
← previousnext →101–200 of 362, ranked by callers