Commit Graph

1017 Commits (arrays)
 

Author SHA1 Message Date
Tristan B. V. Kildaire 15826a2cab Updated test case to include a variable access 3 years ago
Tristan B. V. Kildaire cc2cdf2c30 Throw a parsing error when attempting to use anything but a +, * or - as a unary operator 3 years ago
Tristan B. V. Kildaire 250d4997e9 Added unit test for simple_function_call 3 years ago
Tristan B. V. Kildaire 2ed6a4834d Cleaned up 3 years ago
Tristan B. V. Kildaire c02a574ffa Updated test case to test new unary operator expression support 3 years ago
Tristan B. V. Kildaire aff0da5116 Added codegen/typecheck support for unary operator expressions 3 years ago
Tristan B. V. Kildaire 1b51d9923e Added support to the dependency tree generator for unary operator expressions 3 years ago
Tristan B. V. Kildaire ef9018db89 Added UnaryOperatorExpression (finished it) 3 years ago
Tristan B. V. Kildaire 1e202fe788 Added Unary Oprator Instruction 3 years ago
Tristan B. V. Kildaire 414d9de902 Updated test case 3 years ago
Tristan B. V. Kildaire cd54753359 cleaned up 3 years ago
Tristan B. V. Kildaire 190f64c0e8 cleaned up 3 years ago
Tristan B. V. Kildaire b5c4ca44ee Updated test case 3 years ago
Tristan B. V. Kildaire d79b9eee5c Debugging things 3 years ago
Tristan B. V. Kildaire 1841ca48d9 Recursively descnend upon function argument expressions 3 years ago
Tristan B. V. Kildaire c28a297064 Added toString() to FunctionCall that includes uniqueness number AND funciton's name 3 years ago
Tristan B. V. Kildaire 1b002382d5 BinaryOperatorExpressions are meant to evaluate to a value, they MUST be ValueInstructions 3 years ago
Tristan B. V. Kildaire ba63f85df9 Binary operator expressions now work 3 years ago
Tristan B. V. Kildaire 6222aabc8b Pop types off for Binary Operator typechecking 3 years ago
Tristan B. V. Kildaire de31585bcc Cleaned up 3 years ago
Tristan B. V. Kildaire 475983dd95 Cleaned up 3 years ago
Tristan B. V. Kildaire da9bc742e5 Constrain FuncCallInstr evaluation (for arguyments) to only being value-deriving instructions 3 years ago
Tristan B. V. Kildaire 492074119d Added sub-instructions to FuncCallInstr being built 3 years ago
Tristan B. V. Kildaire 3cac1b496d Fixed addInfo for FuncCallInstr instruction 3 years ago
Tristan B. V. Kildaire 18eba51144 Remove uneeded reversal code 3 years ago
Tristan B. V. Kildaire 4677cacdf1 I think it works now as the types are in the same order as instructions
So I guess that works
3 years ago
Tristan B. V. Kildaire 76f0d6e1a9 Changed `addType(Type)` to add types to the front of the type queue
Added `addTypeB(Type)` to add Types to the end of the type queue
3 years ago
Tristan B. V. Kildaire 4b53823d9c Added `isTypesEmpty()` 3 years ago
Tristan B. V. Kildaire abe72f45a7 WIP 3 years ago
Tristan B. V. Kildaire a84e0dfe20 Some stuff, working on getting function calls working 3 years ago
Tristan B. V. Kildaire 71efb7ae8f Fixed dependency generation for function call paremeters (expressions) 3 years ago
Tristan B. V. Kildaire aa5e82fe09 Added stub funccallinstr add to sotp segmentation fault on funciton calls being processed 3 years ago
Tristan B. V. Kildaire 5641c7f164 Added the ability to perform ONLY tokenization (lexing) 3 years ago
Tristan B. V. Kildaire b5488d5c92 Stuff 3 years ago
Tristan B. V. Kildaire 49de425e45 Static initialization for classes, including class memory allocation and then static variable (member) initialization has now been implemented for the code generator 4 years ago
Tristan B. V. Kildaire 3a32ecfea5 Or do it like that 4 years ago
Tristan B. V. Kildaire a45d2bc30b Variable's name is full path so resolve from the module 4 years ago
Tristan B. V. Kildaire 263bf5edb7 Bug fixed
Should not be parent of, but rather should be the class itself
4 years ago
Tristan B. V. Kildaire 3da50e9eab Got some sort of class allocator node created, now to re-order it by using Context to be able to know when the StaticVariableDeclaration is within class.
This then generates code to allocate space for the class, once done we can be assured the declarations (placed after it now) will be assigning to properly allocated space (paged and maped for example)
4 years ago
Tristan B. V. Kildaire cae3cfe88c Updated 4 years ago
Tristan B. V. Kildaire c58bf07bb1 WIP: Trying to get literal encoding working (but it is currently broken) 4 years ago
Tristan B. V. Kildaire 6ed33a8051 Done with work for today, good refactoring, now to work on class static initoialization.
Instance initialization and unique-ness, and same for Functions with their "FunctionData" will come later
4 years ago
Tristan B. V. Kildaire cb6fb5f86f Removed unused commented blocks of code 4 years ago
Tristan B. V. Kildaire 020847cb76 Added nested class static initialization to test case 4 years ago
Tristan B. V. Kildaire d74f8cb046 Updated test case 4 years ago
Tristan B. V. Kildaire 47edb41e17 Seems like generalised generalPass() is working 4 years ago
Tristan B. V. Kildaire 3eddf73b7b Added some stuff
FunctionData adding, some generation stuff, but reworking to make a general pass function
4 years ago
Tristan B. V. Kildaire 60f490d8e8 Refactored dependency tree generation code (and all related modules) to its own directory 4 years ago
Tristan B. V. Kildaire fffcc953ab Refactored Context class 4 years ago
Tristan B. V. Kildaire 7dd8f2df75 Updated test case 4 years ago