MCPcopy Create free account

hub / github.com/MauriceGit/compiler / functions

Functions362 in github.com/MauriceGit/compiler

↓ 1 callersFunctiontestChannelEqualSlice
(tokens chan Token, expected []Token)
lexer_test.go:56
↓ 1 callersMethodtypeIsGeneric
()
parser.go:856
FunctionExampleArray1
ExampleArray1 checks, that handling arrays as parameters into functions works correctly
compiler_test.go:38
FunctionExampleArray2
ExampleArray2 checks, that moving arrays, assigning them into other arrays and reading them out again is working correctly
compiler_test.go:57
FunctionExampleArray3
ExampleArray3 checks, that arrays are passed correctly through a function (in and out)
compiler_test.go:72
FunctionExampleArrayAppend
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
FunctionExampleArrayCap
ExampleArrayCap checks, that the internal cap() function works correctly on both array definition formats
compiler_test.go:101
FunctionExampleArrayClear
ExampleArrayClear runs the internal clear() function and checks, if the memory has been cleared.
compiler_test.go:164
FunctionExampleArrayExtend
ExampleArrayAppend tests the internal extend() function and checks the length of the resulting arrays for both floats and ints
compiler_test.go:189
FunctionExampleArrayExtend2
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
FunctionExampleArrayFree
ExampleArrayFree runs the internal free() function on some arrays and prints something afterwards to verify, that nothing crashed.
compiler_test.go:117
FunctionExampleArrayLen
ExampleArrayLen checks, that the internal len() function works correctly on both array definition formats
compiler_test.go:86
FunctionExampleArrayReset
ExampleArrayReset runs the internal reset() function and checks, if the length has been reset.
compiler_test.go:140
FunctionExampleBreakContinue
ExampleBreakContinue checks, that break and continue statements work as expected.
compiler_test.go:373
FunctionExampleChar
ExampleChar checks different functionality regarding a newly added char datatype.
compiler_test.go:334
FunctionExampleFunctionOverload
ExampleFunctionOverload checks, if overloaded function names work as expected. Both for the compiler println functions and the new abc() functions
compiler_test.go:471
FunctionExampleMultiAssignment
ExampleMultiAssignment checks, that multi-value assignments and automatic unpacking works correctly
compiler_test.go:397
FunctionExampleMultiParameter
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
FunctionExampleMultiReturn
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
FunctionExamplePrintFloat
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
FunctionExampleRangedFor
ExampleRangedFor checks, that the ranged-for loop works fine on more complex examples, such as arrays in arrays
compiler_test.go:307
FunctionExampleRecursion
ExampleRecursion checks, that function stacks and recursion works as expected
compiler_test.go:21
FunctionExampleStruct1
ExampleStruct1 checks, that structs work in general, within other structs, and within arrays.
compiler_test.go:600
FunctionExampleStruct2
ExampleStruct1 checks, that also work with arrays inside
compiler_test.go:637
FunctionExampleSwitch
ExampleSwitch checks the two variants of switch statements. Value-match switch and general switch.
compiler_test.go:538
FunctionExampleSwitch2
ExampleSwitch2 checks the default cases for both switches
compiler_test.go:569
FunctionExampleTypeCast
()
compiler_test.go:504
MethodString
()
parser.go:510
MethodString
EXPRESSION STRING
parser.go:552
MethodString
()
parser.go:564
MethodString
()
parser.go:574
MethodString
()
parser.go:577
MethodString
()
parser.go:586
MethodString
()
parser.go:590
MethodString
()
parser.go:594
MethodString
()
parser.go:644
MethodString
STATEMENT STRING
parser.go:671
MethodString
()
parser.go:691
MethodString
()
parser.go:702
MethodString
()
parser.go:721
MethodString
()
parser.go:734
MethodString
()
parser.go:750
MethodString
()
parser.go:773
MethodString
()
parser.go:782
MethodString
()
parser.go:786
MethodString
()
parser.go:789
MethodString
()
lexer.go:39
MethodString
()
lexer.go:81
FunctionTestLexerArray1
(t *testing.T)
lexer_test.go:306
FunctionTestLexerArray2
(t *testing.T)
lexer_test.go:323
FunctionTestLexerAssignment
(t *testing.T)
lexer_test.go:150
FunctionTestLexerAssignmentChar
(t *testing.T)
lexer_test.go:169
FunctionTestLexerExpression1
(t *testing.T)
lexer_test.go:86
FunctionTestLexerExpression2
(t *testing.T)
lexer_test.go:100
FunctionTestLexerFor1
(t *testing.T)
lexer_test.go:183
FunctionTestLexerFor2
(t *testing.T)
lexer_test.go:199
FunctionTestLexerFor3
(t *testing.T)
lexer_test.go:215
FunctionTestLexerFunction1
(t *testing.T)
lexer_test.go:240
FunctionTestLexerFunction2
(t *testing.T)
lexer_test.go:255
FunctionTestLexerFunction3
(t *testing.T)
lexer_test.go:273
FunctionTestLexerFunctionChar
(t *testing.T)
lexer_test.go:291
FunctionTestLexerIf
(t *testing.T)
lexer_test.go:114
FunctionTestLexerIfElse
(t *testing.T)
lexer_test.go:131
FunctionTestParserArray1
(t *testing.T)
parser_test.go:716
FunctionTestParserArray2
(t *testing.T)
parser_test.go:741
FunctionTestParserAssignment1
(t *testing.T)
parser_test.go:428
FunctionTestParserAssignment2
(t *testing.T)
parser_test.go:456
FunctionTestParserAssignmentChar
(t *testing.T)
parser_test.go:504
FunctionTestParserExpression1
(t *testing.T)
parser_test.go:304
FunctionTestParserExpression2
(t *testing.T)
parser_test.go:339
FunctionTestParserFor1
(t *testing.T)
parser_test.go:519
FunctionTestParserFor2
(t *testing.T)
parser_test.go:546
FunctionTestParserFor3
(t *testing.T)
parser_test.go:573
FunctionTestParserFunCall
(t *testing.T)
parser_test.go:691
FunctionTestParserFunction1
(t *testing.T)
parser_test.go:622
FunctionTestParserFunction2
(t *testing.T)
parser_test.go:641
FunctionTestParserFunction3
(t *testing.T)
parser_test.go:666
FunctionTestParserIf
(t *testing.T)
parser_test.go:376
FunctionTestParserIfElse
(t *testing.T)
parser_test.go:402
MethodallPathsReturn
()
functionReturnAnalysis.go:7
Methodexpression
()
parser.go:178
Methodexpression
()
parser.go:246
Methodexpression
()
parser.go:247
Methodexpression
()
parser.go:248
Methodexpression
()
parser.go:249
Methodexpression
()
parser.go:250
Methodexpression
()
parser.go:251
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:233
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:297
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:348
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:425
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:475
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:598
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:752
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:832
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:861
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:865
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:869
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:913
MethodgenerateCode
(asm *ASM, s *SymbolTable)
codeGeneration.go:957
← previousnext →201–300 of 362, ranked by callers