|
|
a79a2332a1
|
implement visitor to collect all struct names
|
2020-03-09 12:45:16 +01:00 |
|
|
|
f0b6f052d6
|
implement pretty print for struct field access expression
|
2020-03-09 12:45:16 +01:00 |
|
|
|
1ca3f5ca8b
|
implement context analysis for struct field access expressions
|
2020-03-09 12:45:16 +01:00 |
|
|
|
6a7eb8fde2
|
make GetStructs collect the complete struct definitions
|
2020-03-09 12:45:16 +01:00 |
|
|
|
a969aa895f
|
make GetStructs collect the complete struct definitions
|
2020-03-09 12:45:16 +01:00 |
|
|
|
fef397c60d
|
implement empty visitors
|
2020-03-09 12:43:25 +01:00 |
|
|
|
e873e211c9
|
implement node for struct field access expression
|
2020-03-09 12:43:25 +01:00 |
|
|
|
304891adb8
|
add struct field access expression
|
2020-03-09 12:43:25 +01:00 |
|
|
|
233894fbcf
|
remove NYI errors, check if a struct is defined if the declared type is not primitive
|
2020-03-09 12:43:25 +01:00 |
|
|
|
6981c288e6
|
implement context analysis
|
2020-03-09 12:43:25 +01:00 |
|
|
|
33904a3c33
|
implement pretty print visitor
|
2020-03-09 12:41:52 +01:00 |
|
|
|
279ea28a29
|
add empty stubs for the visit method of the new nodes
|
2020-03-09 12:41:52 +01:00 |
|
|
|
15c55ed065
|
add the new nodes to the list of visitable nodes
|
2020-03-09 12:41:52 +01:00 |
|
|
|
309fe39c01
|
implement get vars visitor
|
2020-03-09 12:41:52 +01:00 |
|
|
|
fd7f7c39bb
|
implement a visitor that collects the names of all structs that were defined
|
2020-03-09 12:41:52 +01:00 |
|
|
|
b5086b44f0
|
return a struct type if no primitive type with the given name was found
|
2020-03-09 12:41:52 +01:00 |
|
|
|
e971b8b91e
|
create a new type class that represents the type of a struct
|
2020-03-09 12:40:59 +01:00 |
|
|
|
6f8c995f19
|
create DAST nodes for structDefinition and structField
|
2020-03-09 12:40:59 +01:00 |
|
|
|
3e8e30e0da
|
add struct definitions as a direct child of program
|
2020-03-09 12:40:59 +01:00 |
|
Dennis Kaiser
|
e297a7d2e8
|
Merge branch '25-floats' into 'master'
Resolve "Floats"
Closes #25
See merge request mkais001/klang!15
|
2020-03-06 00:36:10 +01:00 |
|
|
|
333475f27b
|
implement integer division tests
|
2020-03-05 17:21:08 +01:00 |
|
|
|
a8b093a005
|
reenable the mod test for -1, -1
|
2020-03-05 17:13:36 +01:00 |
|
|
|
1530dc6c55
|
sign extend rax into rbx before calling idiv, the replaces the rbx zeroing
|
2020-03-05 17:13:19 +01:00 |
|
|
|
09eec634b1
|
add new mixdiv test for -1, -1
|
2020-03-05 16:50:37 +01:00 |
|
|
|
150e18e05b
|
inspec type of expression instead of the type of the assignment, since the assignment type is always null
|
2020-03-05 16:40:31 +01:00 |
|
|
|
ebeabfe930
|
fix input values to match expected value
|
2020-03-05 16:39:47 +01:00 |
|
Marvin Kaiser
|
bba950c851
|
25: Fix tests
|
2020-03-05 12:31:09 +01:00 |
|
Marvin Kaiser
|
cbc8020e81
|
25: Rewrite prepareRegisters, correct operator order for comparisons
|
2020-03-05 09:06:22 +01:00 |
|
Marvin Kaiser
|
58cdaf04dd
|
25-Add more tests for floats
|
2020-03-05 07:58:16 +01:00 |
|
Marvin Kaiser
|
229920946d
|
25- Strict check between function signature and function call
|
2020-03-04 20:53:50 +01:00 |
|
|
|
18cfbdcbb5
|
implement function call tests for floats and floats mixed with integers
|
2020-03-04 20:46:49 +01:00 |
|
|
|
384d98418d
|
implement math tests for floats
|
2020-03-04 20:46:08 +01:00 |
|
Marvin Kaiser
|
6eb61f905f
|
25: Add logic for handling float in function calls
|
2020-03-04 19:29:24 +01:00 |
|
Marvin Kaiser
|
0316a7d4bf
|
25: Start adding Float Type
|
2020-03-03 20:45:55 +01:00 |
|
Marvin Kaiser
|
db8146ed8a
|
Merge branch '28-static-type-check-bug-with-if-clause-in-function' into 'master'
Resolve "Static type check bug with if clause in function"
Closes #28
See merge request mkais001/klang!14
|
2020-02-04 12:07:03 +01:00 |
|
|
|
a9db8b3f9a
|
set the initialited field of class VariableDeclaration, make sure a variable has been inizialized prior to its usage
|
2020-02-04 12:02:41 +01:00 |
|
|
|
1bb53a0bcf
|
add field 'initialized' to class VariableDeclaration
|
2020-02-04 12:02:15 +01:00 |
|
Marvin Kaiser
|
e00b72a32d
|
Merge branch '20-update-readme' into 'master'
Resolve "Update Readme"
Closes #20
See merge request mkais001/klang!13
|
2020-02-04 11:46:35 +01:00 |
|
|
|
1e2dee3f1d
|
add a section that showcases the static type system
|
2020-02-04 11:35:00 +01:00 |
|
|
|
1ae404b978
|
always add the declared type as the type of a variable declaration. do not use the combined type as the type of the variable that is declared
|
2020-02-04 11:21:48 +01:00 |
|
Marvin Kaiser
|
269cf302df
|
Merge branch '17-line-and-block-comments' into 'master'
add lexer rules for line and block comments
Closes #17
See merge request mkais001/klang!12
|
2020-02-04 11:11:06 +01:00 |
|
|
|
d3a4af0b8c
|
add lexer rules for line and block comments
|
2020-02-04 11:02:34 +01:00 |
|
|
|
47390f6757
|
add missing type declarations to pretty print output
|
2020-02-04 00:16:14 +01:00 |
|
Dennis Kaiser
|
974baebfe9
|
Merge branch '13-fix-eval-visitor' into 'master'
Resolve "Fix eval visitor"
Closes #13 and #27
See merge request mkais001/klang!11
|
2020-02-04 00:16:04 +01:00 |
|
|
|
e978b4d52c
|
remove unused import
|
2020-02-04 00:07:56 +01:00 |
|
|
|
26b1406013
|
make boolean and comparison expression evaluate to bool, user asBoolean when expecting a boolean, re-welcome the conditions of loops everytime another step has to be evaluated
|
2020-02-04 00:07:22 +01:00 |
|
|
|
56463c3e30
|
the the result of eval as an object and call toString\(\) on it
|
2020-02-03 23:53:25 +01:00 |
|
|
|
fc33ab6b12
|
add method to get the raw value representation
|
2020-02-03 23:52:21 +01:00 |
|
Dennis Kaiser
|
d5610b0c3f
|
Merge branch 'feature/better-errors' into 'master'
Feature/better errors
See merge request mkais001/klang!10
|
2020-02-03 23:50:49 +01:00 |
|
|
|
f3c5bac860
|
check whether the types of the operants of an equality expression can combine instead of enforcing them to both be integers
|
2020-02-03 23:45:52 +01:00 |
|