Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MauriceGit/compiler
/ functions
Functions
362 in github.com/MauriceGit/compiler
⨍
Functions
362
◇
Types & classes
37
↓ 2 callers
Method
getExpressionTypes
(s *SymbolTable)
parser.go:295
↓ 2 callers
Method
getLocalFun
(name string, paramTypes []ComplexType, strict bool)
semanticAnalyzer.go:64
↓ 2 callers
Function
newFunCall
(name string, exprs []Expression)
parser_test.go:270
↓ 2 callers
Function
newSimpleTypeList
(ts []Type)
parser_test.go:279
↓ 2 callers
Method
next
()
parser.go:803
↓ 2 callers
Function
parse
(tokens chan Token)
parser.go:2284
↓ 2 callers
Function
parseArgList
(tokens *TokenChannel, expectSeparator bool)
parser.go:1918
↓ 2 callers
Function
parseConstant
(tokens *TokenChannel)
parser.go:1106
↓ 2 callers
Function
parseDirectAccess
(tokens *TokenChannel)
parser.go:977
↓ 2 callers
Function
parseFunCall
(tokens *TokenChannel)
parser.go:1114
↓ 2 callers
Function
parseVariable
(tokens *TokenChannel)
parser.go:1019
↓ 2 callers
Method
setLoopJumpLabels
(br, cont string)
semanticAnalyzer.go:128
↓ 2 callers
Function
stringToType
(s string)
parser.go:616
↓ 1 callers
Method
addArrayAppendFunction
(asm *ASM)
codeGeneration.go:2164
↓ 1 callers
Method
addArrayCapFunction
(asm *ASM)
codeGeneration.go:1788
↓ 1 callers
Method
addArrayClearFunction
(asm *ASM)
codeGeneration.go:1993
↓ 1 callers
Method
addArrayExtendFunction
(asm *ASM)
codeGeneration.go:2031
↓ 1 callers
Method
addArrayFreeFunction
(asm *ASM)
codeGeneration.go:1923
↓ 1 callers
Method
addArrayLenFunction
(asm *ASM)
codeGeneration.go:1761
↓ 1 callers
Method
addArrayResetFunction
(asm *ASM)
codeGeneration.go:1963
↓ 1 callers
Method
addCharFunction
(asm *ASM)
codeGeneration.go:1842
↓ 1 callers
Method
addFloatFunction
(asm *ASM)
codeGeneration.go:1896
↓ 1 callers
Method
addIntFromCharFunction
(asm *ASM)
codeGeneration.go:1869
↓ 1 callers
Method
addIntFromFloatFunction
(asm *ASM)
codeGeneration.go:1815
↓ 1 callers
Method
addInternalPrintCharFunction
(asm *ASM)
codeGeneration.go:1347
↓ 1 callers
Method
addLines
(commands [][3]string)
codeGeneration.go:80
↓ 1 callers
Method
addPrintCharFunction
(asm *ASM)
codeGeneration.go:1393
↓ 1 callers
Method
addPrintCharLnFunction
(asm *ASM)
codeGeneration.go:1434
↓ 1 callers
Method
addPrintFloatFunction
(asm *ASM)
codeGeneration.go:1609
↓ 1 callers
Method
addPrintFloatLnFunction
(asm *ASM)
codeGeneration.go:1714
↓ 1 callers
Method
addPrintIntFunction
(asm *ASM)
codeGeneration.go:1480
↓ 1 callers
Method
addPrintIntLnFunction
(asm *ASM)
codeGeneration.go:1563
↓ 1 callers
Function
analyzeArrayDecl
(a Array, symbolTable *SymbolTable)
semanticAnalyzer.go:640
↓ 1 callers
Function
analyzeBinaryOp
(binaryOp BinaryOp, symbolTable *SymbolTable)
semanticAnalyzer.go:301
↓ 1 callers
Function
analyzeBreak
(br Break, symbolTable *SymbolTable)
semanticAnalyzer.go:1111
↓ 1 callers
Function
analyzeCondition
(condition Condition, symbolTable *SymbolTable)
semanticAnalyzer.go:821
↓ 1 callers
Function
analyzeContinue
(cont Continue, symbolTable *SymbolTable)
semanticAnalyzer.go:1118
↓ 1 callers
Function
analyzeFunCallReturnTypes
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 callers
Function
analyzeFunction
(fun Function, symbolTable *SymbolTable)
semanticAnalyzer.go:1023
↓ 1 callers
Function
analyzeLoop
(loop Loop, symbolTable *SymbolTable)
semanticAnalyzer.go:921
↓ 1 callers
Function
analyzeRangedLoop
(loop RangedLoop, symbolTable *SymbolTable)
semanticAnalyzer.go:977
↓ 1 callers
Function
analyzeReturn
(ret Return, symbolTable *SymbolTable)
semanticAnalyzer.go:1075
↓ 1 callers
Function
analyzeStatement
(statement Statement, symbolTable *SymbolTable)
semanticAnalyzer.go:1176
↓ 1 callers
Function
analyzeStructDef
(st StructDef, symbolTable *SymbolTable)
semanticAnalyzer.go:1144
↓ 1 callers
Function
analyzeSwitch
(sc Switch, symbolTable *SymbolTable)
semanticAnalyzer.go:860
↓ 1 callers
Function
analyzeUnaryOp
(unaryOp UnaryOp, symbolTable *SymbolTable)
semanticAnalyzer.go:249
↓ 1 callers
Function
analyzeVariable
(e Variable, symbolTable *SymbolTable)
semanticAnalyzer.go:686
↓ 1 callers
Function
assemble
(asm ASM, source, executable string)
compiler.go:14
↓ 1 callers
Function
binaryOperationNumber
binaryOperationFloat executes the operation on the two registers and writes the result into rLeft!
codeGeneration.go:388
↓ 1 callers
Function
compareASTs
(generated AST, expected AST)
parser_test.go:207
↓ 1 callers
Function
compareArray
(v1, v2 Array)
parser_test.go:55
↓ 1 callers
Function
compareStatement
(s1, s2 Statement)
parser_test.go:145
↓ 1 callers
Method
eq
(e2 Constant)
parser_test.go:8
↓ 1 callers
Method
extractAllFunctionVariables
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 callers
Method
functionReturnAnalysis
()
functionReturnAnalysis.go:66
↓ 1 callers
Function
generateStructExprCode
(asm *ASM, s *SymbolTable, f FunCall)
codeGeneration.go:576
↓ 1 callers
Function
getCommand
(t Type, op Operator)
codeGeneration.go:216
↓ 1 callers
Function
getCommandBool
(op Operator)
codeGeneration.go:150
↓ 1 callers
Function
getCommandChar
(op Operator)
codeGeneration.go:145
↓ 1 callers
Function
getCommandFloat
(op Operator)
codeGeneration.go:113
↓ 1 callers
Function
getCommandInt
(op Operator)
codeGeneration.go:129
↓ 1 callers
Function
getConstType
(c string)
parser.go:1080
↓ 1 callers
Function
getConvenienceFunctions
()
compiler.go:112
↓ 1 callers
Method
getExpressionTypes
(s *SymbolTable)
parser.go:291
↓ 1 callers
Method
getExpressionTypes
(s *SymbolTable)
parser.go:298
↓ 1 callers
Method
getFunctionCode
(asmName string)
codeGeneration.go:87
↓ 1 callers
Function
getJumpType
(op Operator)
codeGeneration.go:95
↓ 1 callers
Method
getLocalVars
()
semanticAnalyzer.go:27
↓ 1 callers
Method
getLoopBreakLabel
()
semanticAnalyzer.go:133
↓ 1 callers
Method
getLoopContinueLabel
()
semanticAnalyzer.go:140
↓ 1 callers
Function
getMoreIntRegister
()
codeGeneration.go:174
↓ 1 callers
Method
getResultCount
()
parser.go:320
↓ 1 callers
Method
isDirectlyAccessed
()
parser.go:336
↓ 1 callers
Method
isLocalFun
(name string, paramTypes []ComplexType)
semanticAnalyzer.go:82
↓ 1 callers
Method
isLocalVar
isLocalVar only searches the immediate local symbol varTable
semanticAnalyzer.go:19
↓ 1 callers
Function
isTypeString
(s string)
parser.go:634
↓ 1 callers
Function
parseArrayExpression
(tokens *TokenChannel)
parser.go:1173
↓ 1 callers
Function
parseBreak
(tokens *TokenChannel)
parser.go:2076
↓ 1 callers
Function
parseByte
(program []byte)
lexer.go:85
↓ 1 callers
Function
parseCases
(tokens *TokenChannel, valueSwitch bool)
parser.go:1625
↓ 1 callers
Function
parseCondition
if ::= 'if' exp '{' [stat] '}' [else '{' [stat] '}']
parser.go:1564
↓ 1 callers
Function
parseContinue
(tokens *TokenChannel)
parser.go:2089
↓ 1 callers
Function
parseFunction
(tokens *TokenChannel)
parser.go:1995
↓ 1 callers
Function
parseLoop
(tokens *TokenChannel)
parser.go:1803
↓ 1 callers
Function
parseRangedLoop
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 callers
Function
parseReturn
(tokens *TokenChannel)
parser.go:2058
↓ 1 callers
Function
parseSimpleExpression
func parseStructExpr(tokens *TokenChannel) (st StructExpr, err error) { name, startRow, startCol, ok := tokens.expectType(TOKEN_IDENTIFIER) if !ok {
parser.go:1281
↓ 1 callers
Function
parseStruct
(tokens *TokenChannel)
parser.go:2101
↓ 1 callers
Function
parseSwitch
(tokens *TokenChannel)
parser.go:1687
↓ 1 callers
Function
parseTypeList
(tokens *TokenChannel)
parser.go:1966
↓ 1 callers
Function
parseUnaryExpression
(tokens *TokenChannel)
parser.go:1359
↓ 1 callers
Function
parseVarList
(tokens *TokenChannel)
parser.go:1048
↓ 1 callers
Function
preprocess
(program []byte)
compiler.go:142
↓ 1 callers
Function
semanticAnalysis
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 callers
Method
setFunEpilogueLabel
(v string, label string, paramTypes []ComplexType)
semanticAnalyzer.go:181
↓ 1 callers
Method
setFunReturnStackPointer
(v string, offset int, paramTypes []ComplexType)
semanticAnalyzer.go:226
↓ 1 callers
Function
setSystemFunctionUsage
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 callers
Method
setType
(v string, members []StructMem)
semanticAnalyzer.go:38
↓ 1 callers
Method
setVarAsmOffset
(v string, offset int)
semanticAnalyzer.go:114
↓ 1 callers
Function
structMemToTypeList
(mems []StructMem)
semanticAnalyzer.go:558
← previous
next →
101–200 of 362, ranked by callers