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
↓ 1 callers
Function
testChannelEqualSlice
(tokens chan Token, expected []Token)
lexer_test.go:56
↓ 1 callers
Method
typeIsGeneric
()
parser.go:856
Function
ExampleArray1
ExampleArray1 checks, that handling arrays as parameters into functions works correctly
compiler_test.go:38
Function
ExampleArray2
ExampleArray2 checks, that moving arrays, assigning them into other arrays and reading them out again is working correctly
compiler_test.go:57
Function
ExampleArray3
ExampleArray3 checks, that arrays are passed correctly through a function (in and out)
compiler_test.go:72
Function
ExampleArrayAppend
ExampleArrayAppend2 checks, if the capacity is adjusted as expected (factor 2 for new allocations) and if we re-use existing memory, if it is availabl
compiler_test.go:280
Function
ExampleArrayCap
ExampleArrayCap checks, that the internal cap() function works correctly on both array definition formats
compiler_test.go:101
Function
ExampleArrayClear
ExampleArrayClear runs the internal clear() function and checks, if the memory has been cleared.
compiler_test.go:164
Function
ExampleArrayExtend
ExampleArrayAppend tests the internal extend() function and checks the length of the resulting arrays for both floats and ints
compiler_test.go:189
Function
ExampleArrayExtend2
ExampleArrayAppend2 checks, if the capacity is adjusted as expected (factor 2 for new allocations) and if we re-use existing memory, if it is availabl
compiler_test.go:231
Function
ExampleArrayFree
ExampleArrayFree runs the internal free() function on some arrays and prints something afterwards to verify, that nothing crashed.
compiler_test.go:117
Function
ExampleArrayLen
ExampleArrayLen checks, that the internal len() function works correctly on both array definition formats
compiler_test.go:86
Function
ExampleArrayReset
ExampleArrayReset runs the internal reset() function and checks, if the length has been reset.
compiler_test.go:140
Function
ExampleBreakContinue
ExampleBreakContinue checks, that break and continue statements work as expected.
compiler_test.go:373
Function
ExampleChar
ExampleChar checks different functionality regarding a newly added char datatype.
compiler_test.go:334
Function
ExampleFunctionOverload
ExampleFunctionOverload checks, if overloaded function names work as expected. Both for the compiler println functions and the new abc() functions
compiler_test.go:471
Function
ExampleMultiAssignment
ExampleMultiAssignment checks, that multi-value assignments and automatic unpacking works correctly
compiler_test.go:397
Function
ExampleMultiParameter
ExampleMultiParameter checks, that given > 6 parameters, they will be passed to the function correctly. This is important, as with > 6 parameters, we
compiler_test.go:422
Function
ExampleMultiReturn
ExampleMultiReturn checks, that returning multiple values works correctly. This is important, as we need to make space on the stack before calling the
compiler_test.go:445
Function
ExamplePrintFloat
ExamplePrintFloat exists because we had an issue with incorrect printing of some float values. Just to make sure it works from now on.
compiler_test.go:524
Function
ExampleRangedFor
ExampleRangedFor checks, that the ranged-for loop works fine on more complex examples, such as arrays in arrays
compiler_test.go:307
Function
ExampleRecursion
ExampleRecursion checks, that function stacks and recursion works as expected
compiler_test.go:21
Function
ExampleStruct1
ExampleStruct1 checks, that structs work in general, within other structs, and within arrays.
compiler_test.go:600
Function
ExampleStruct2
ExampleStruct1 checks, that also work with arrays inside
compiler_test.go:637
Function
ExampleSwitch
ExampleSwitch checks the two variants of switch statements. Value-match switch and general switch.
compiler_test.go:538
Function
ExampleSwitch2
ExampleSwitch2 checks the default cases for both switches
compiler_test.go:569
Function
ExampleTypeCast
()
compiler_test.go:504
Method
String
()
parser.go:510
Method
String
EXPRESSION STRING
parser.go:552
Method
String
()
parser.go:564
Method
String
()
parser.go:574
Method
String
()
parser.go:577
Method
String
()
parser.go:586
Method
String
()
parser.go:590
Method
String
()
parser.go:594
Method
String
()
parser.go:644
Method
String
STATEMENT STRING
parser.go:671
Method
String
()
parser.go:691
Method
String
()
parser.go:702
Method
String
()
parser.go:721
Method
String
()
parser.go:734
Method
String
()
parser.go:750
Method
String
()
parser.go:773
Method
String
()
parser.go:782
Method
String
()
parser.go:786
Method
String
()
parser.go:789
Method
String
()
lexer.go:39
Method
String
()
lexer.go:81
Function
TestLexerArray1
(t *testing.T)
lexer_test.go:306
Function
TestLexerArray2
(t *testing.T)
lexer_test.go:323
Function
TestLexerAssignment
(t *testing.T)
lexer_test.go:150
Function
TestLexerAssignmentChar
(t *testing.T)
lexer_test.go:169
Function
TestLexerExpression1
(t *testing.T)
lexer_test.go:86
Function
TestLexerExpression2
(t *testing.T)
lexer_test.go:100
Function
TestLexerFor1
(t *testing.T)
lexer_test.go:183
Function
TestLexerFor2
(t *testing.T)
lexer_test.go:199
Function
TestLexerFor3
(t *testing.T)
lexer_test.go:215
Function
TestLexerFunction1
(t *testing.T)
lexer_test.go:240
Function
TestLexerFunction2
(t *testing.T)
lexer_test.go:255
Function
TestLexerFunction3
(t *testing.T)
lexer_test.go:273
Function
TestLexerFunctionChar
(t *testing.T)
lexer_test.go:291
Function
TestLexerIf
(t *testing.T)
lexer_test.go:114
Function
TestLexerIfElse
(t *testing.T)
lexer_test.go:131
Function
TestParserArray1
(t *testing.T)
parser_test.go:716
Function
TestParserArray2
(t *testing.T)
parser_test.go:741
Function
TestParserAssignment1
(t *testing.T)
parser_test.go:428
Function
TestParserAssignment2
(t *testing.T)
parser_test.go:456
Function
TestParserAssignmentChar
(t *testing.T)
parser_test.go:504
Function
TestParserExpression1
(t *testing.T)
parser_test.go:304
Function
TestParserExpression2
(t *testing.T)
parser_test.go:339
Function
TestParserFor1
(t *testing.T)
parser_test.go:519
Function
TestParserFor2
(t *testing.T)
parser_test.go:546
Function
TestParserFor3
(t *testing.T)
parser_test.go:573
Function
TestParserFunCall
(t *testing.T)
parser_test.go:691
Function
TestParserFunction1
(t *testing.T)
parser_test.go:622
Function
TestParserFunction2
(t *testing.T)
parser_test.go:641
Function
TestParserFunction3
(t *testing.T)
parser_test.go:666
Function
TestParserIf
(t *testing.T)
parser_test.go:376
Function
TestParserIfElse
(t *testing.T)
parser_test.go:402
Method
allPathsReturn
()
functionReturnAnalysis.go:7
Method
expression
()
parser.go:178
Method
expression
()
parser.go:246
Method
expression
()
parser.go:247
Method
expression
()
parser.go:248
Method
expression
()
parser.go:249
Method
expression
()
parser.go:250
Method
expression
()
parser.go:251
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:233
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:297
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:348
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:425
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:475
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:598
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:752
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:832
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:861
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:865
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:869
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:913
Method
generateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:957
← previous
next →
201–300 of 362, ranked by callers