Tristan B. Velloza Kildaire
aae5dbabe8
Fixed compilation issue with jcli
...
Upgraded jcli
2022-08-23 16:33:49 +02:00
Tristan B. Velloza Kildaire
a8f93e5817
Cleaned up comments for number literal code gen and type checking handling
2022-08-19 11:42:19 +02:00
Tristan B. Velloza Kildaire
7e49cf1d0a
Added float support
...
- Added float constant support to the lexer
- Added float support to the typechecker to build the correct Instruction type
Unit tests
- Added unit test for a bad example of a malformed encoded floating point to test out the lexer
2022-08-11 10:26:30 +02:00
Tristan B. Velloza Kildaire
2dbe14b490
WIP: Floating pooint literal/constant support
2022-07-26 11:16:51 +02:00
Tristan B. Velloza Kildaire
f49b0ce2b9
Added floating point constants to test
2022-07-26 10:34:53 +02:00
Tristan B. Velloza Kildaire
c561060470
Added float and double types to builtin types
...
Added floating point test case
2022-07-26 10:27:55 +02:00
Tristan B. Velloza Kildaire
e8ddb62152
Removed Double type
...
Refactored Float type
2022-07-26 10:27:12 +02:00
Tristan B. Velloza Kildaire
f64c067184
Updated simple_string.t test
2022-07-26 10:12:35 +02:00
Tristan B. Velloza Kildaire
4488678d3e
Code cleanup
2022-07-26 10:10:43 +02:00
Tristan B. Velloza Kildaire
18411c48c4
Removed TODO
2022-07-26 10:07:03 +02:00
Tristan B. Velloza Kildaire
c8347fefba
Updated simple_string.t to include string constants (literals) that test interning to the same pool ID
2022-07-26 09:59:59 +02:00
Tristan B. Velloza Kildaire
d19512668a
Pass StringLiteral instruction extracted string literal from StringExpression synmbol
...
Removed TODO
2022-07-26 09:59:27 +02:00
Tristan B. Velloza Kildaire
e2157f428c
Implemented `getStringLiteral()` for StringExpression symbol type
2022-07-26 09:58:45 +02:00
Tristan B. Velloza Kildaire
7e9e303a1c
Implemented StringLiteral Value-kind-of instruction with string interning
2022-07-26 09:58:25 +02:00
Tristan B. Velloza Kildaire
f9a8590604
Array type handling added to builtin-types handling
2022-07-26 09:57:57 +02:00
Tristan B. Velloza Kildaire
e0feaac953
Added new test case
2022-07-25 19:34:57 +02:00
Tristan B. Velloza Kildaire
6cfca2cea2
Added `addInstr()` for StringExpression handling (String literals)
...
Bug fixed whenever a "" is encountered
2022-07-25 19:30:40 +02:00
Tristan B. Velloza Kildaire
415538f54a
Added StringLiteral instruction
2022-07-25 19:30:07 +02:00
Tristan B. Velloza Kildaire
ca2fa84057
Added support for Pointer type resolution via `getType()`. Now `char**` -> Pointer("char*"), which before construction of such a Pointer is recursively resolved, so nested Pointer(Pointer(...))
2022-07-25 19:15:27 +02:00
Tristan B. Velloza Kildaire
88a48e1b3d
FuncDecNode for the Dependecny Tree Generator added
2022-04-13 09:51:38 +02:00
Tristan B. Velloza Kildaire
35d71a0c25
WIP: FunctionHandle (reference to a funciton's name (NOT a FuncCall)) support (context may not be entirely right)
2022-04-13 09:51:23 +02:00
Tristan B. Velloza Kildaire
f571115c23
Added some possible todos, might not need to do any of them but I also might
2022-04-13 09:50:24 +02:00
Tristan B. Velloza Kildaire
1322c0f790
BinaryOperatorExpression now has a proper toString()
2022-04-13 09:49:42 +02:00
Tristan B. Velloza Kildaire
1f8f248219
Added support for the ampersand operator
2022-04-13 09:49:20 +02:00
Tristan B. Velloza Kildaire
15a848756b
Added support for binary/boolean operators in the unary and binary operator cases
2022-04-13 09:45:06 +02:00
Tristan B. Velloza Kildaire
e9a60380b6
Pointer type now only requires you provide it the data type of the data being pointed to.
...
The name of the type will be automatically constructed as `dataType*` (if `dataType` was the type of the data being pointed to)
2022-04-13 09:35:46 +02:00
Tristan B. Velloza Kildaire
6412241185
Added a test case to test pointer handles
2022-04-12 16:17:40 +02:00
Tristan B. Velloza Kildaire
15826a2cab
Updated test case to include a variable access
2022-04-12 16:17:29 +02:00
Tristan B. Velloza Kildaire
cc2cdf2c30
Throw a parsing error when attempting to use anything but a +, * or - as a unary operator
2022-04-12 13:03:40 +02:00
Tristan B. Velloza Kildaire
250d4997e9
Added unit test for simple_function_call
2022-04-12 11:12:02 +02:00
Tristan B. Velloza Kildaire
2ed6a4834d
Cleaned up
2022-04-12 11:11:54 +02:00
Tristan B. Velloza Kildaire
c02a574ffa
Updated test case to test new unary operator expression support
2022-04-12 10:54:12 +02:00
Tristan B. Velloza Kildaire
aff0da5116
Added codegen/typecheck support for unary operator expressions
2022-04-12 10:54:04 +02:00
Tristan B. Velloza Kildaire
1b51d9923e
Added support to the dependency tree generator for unary operator expressions
2022-04-12 10:53:44 +02:00
Tristan B. Velloza Kildaire
ef9018db89
Added UnaryOperatorExpression (finished it)
2022-04-12 10:53:17 +02:00
Tristan B. Velloza Kildaire
1e202fe788
Added Unary Oprator Instruction
2022-04-12 10:52:18 +02:00
Tristan B. Velloza Kildaire
414d9de902
Updated test case
2022-04-08 01:18:57 +02:00
Tristan B. Velloza Kildaire
cd54753359
cleaned up
2022-04-08 01:18:12 +02:00
Tristan B. Velloza Kildaire
190f64c0e8
cleaned up
2022-04-08 01:15:31 +02:00
Tristan B. Velloza Kildaire
b5c4ca44ee
Updated test case
2022-04-08 01:12:55 +02:00
Tristan B. Velloza Kildaire
d79b9eee5c
Debugging things
2022-04-08 01:12:52 +02:00
Tristan B. Velloza Kildaire
1841ca48d9
Recursively descnend upon function argument expressions
2022-04-08 01:12:34 +02:00
Tristan B. Velloza Kildaire
c28a297064
Added toString() to FunctionCall that includes uniqueness number AND funciton's name
2022-04-08 01:08:57 +02:00
Tristan B. Velloza Kildaire
1b002382d5
BinaryOperatorExpressions are meant to evaluate to a value, they MUST be ValueInstructions
2022-04-08 00:34:50 +02:00
Tristan B. Velloza Kildaire
ba63f85df9
Binary operator expressions now work
2022-02-20 16:37:45 +02:00
Tristan B. Velloza Kildaire
6222aabc8b
Pop types off for Binary Operator typechecking
2022-02-20 16:21:29 +02:00
Tristan B. Velloza Kildaire
de31585bcc
Cleaned up
2022-02-20 16:05:15 +02:00
Tristan B. Velloza Kildaire
475983dd95
Cleaned up
2022-02-20 16:04:53 +02:00
Tristan B. Velloza Kildaire
da9bc742e5
Constrain FuncCallInstr evaluation (for arguyments) to only being value-deriving instructions
2022-02-20 15:36:22 +02:00
Tristan B. Velloza Kildaire
492074119d
Added sub-instructions to FuncCallInstr being built
2022-02-20 15:35:34 +02:00