Commit Graph

249 Commits

Author SHA1 Message Date
ac870460e6 use ubuntu, install maven 2020-03-09 22:03:01 +01:00
da56e1c05e try maven:latest as base image 2020-03-09 21:55:47 +01:00
ba17c7e2b6 fix typo 2020-03-09 21:50:06 +01:00
d6c0131d8f add test parser test, rename test to test compilation 2020-03-09 21:46:52 +01:00
d90581f0cd add new target testJava to execute the junit tests 2020-03-09 21:46:31 +01:00
6714d2136d do not run tests when building the project 2020-03-09 21:43:26 +01:00
fe9c9b79b8 add test directory to settings 2020-03-09 21:40:45 +01:00
89ec828499 remove unused import 2020-03-09 21:32:40 +01:00
9df0da89ff implement junit tests 2020-03-09 21:32:05 +01:00
649e690ac4 add junit 2020-03-09 21:31:54 +01:00
6d60dcc4a3 add option to surpress illegal relfective access warning 2020-03-09 21:31:45 +01:00
Dennis Kaiser
4f1d009626 Merge branch '24-structs' into 'master'
Resolve "Structs"

Closes #24

See merge request mkais001/klang!17
2020-03-09 14:43:17 +01:00
Dennis Kaiser
335b70d301 Merge branch '29-remove-print-statement' into 'master'
delete print statement

Closes #29

See merge request mkais001/klang!16
2020-03-09 14:23:07 +01:00
ac6cb22e45 delete print statement 2020-03-09 14:19:43 +01:00
14f80b46cc remove whitespace 2020-03-09 14:12:19 +01:00
4a9e5c30e1 implement test_expected functions for all types in use 2020-03-09 14:10:35 +01:00
0adb9e22da implement print function for struct addresses and bools 2020-03-09 14:10:03 +01:00
1f8de66751 update the struct test so that field c of the test struct is of type double 2020-03-09 13:49:09 +01:00
fc16663dae make floats work in structs 2020-03-09 13:48:31 +01:00
31330db676 replace DOT with PERIOD 2020-03-09 12:53:26 +01:00
8bb912b377 implement isNumericType 2020-03-09 12:51:28 +01:00
3b5dc43cfb implement test functions 2020-03-09 12:49:09 +01:00
08398e4064 add struct test function prototype 2020-03-09 12:48:31 +01:00
b776ac00e3 call struct tests 2020-03-09 12:48:31 +01:00
9adc48da82 implement struct tests 2020-03-09 12:48:31 +01:00
1403e0a231 fix indices 2020-03-09 12:48:31 +01:00
02666a9459 implement visitors 2020-03-09 12:48:31 +01:00
32cb06cd51 implement method that returns the index of a field by name 2020-03-09 12:48:31 +01:00
e3d8f3cfa7 implement field access visitor 2020-03-09 12:48:31 +01:00
90ed033943 implement fielfd assignment node 2020-03-09 12:48:31 +01:00
ed4c901c6c add field assignment to statements 2020-03-09 12:48:31 +01:00
86e77d1609 update the struct definition when following the path 2020-03-09 12:48:31 +01:00
eb75cc7838 implement GenASM for structs 2020-03-09 12:48:31 +01:00
e2986b3d65 add the struct name to the struct field access expression node 2020-03-09 12:48:31 +01:00
1693eb6426 implement helper functions to determine the struct size and field offsets 2020-03-09 12:48:31 +01:00
622be803cc add structs to the constructor params of GenASM 2020-03-09 12:48:31 +01:00
3f18fa56c2 add struct definitions as a constructor parameter 2020-03-09 12:48:31 +01:00
a9ab8f08e6 implement structs 2020-03-09 12:47:44 +01:00
bc5efde8c5 add the retrieved structs to the constructor call of the eval visitor 2020-03-09 12:47:44 +01:00
edaa686a2a add method to get the value as a struct 2020-03-09 12:47:44 +01:00
b9569c7df6 add missing semicolong since a destructor call is now a statement 2020-03-09 12:47:02 +01:00
86fe676492 rename method to match new grammar 2020-03-09 12:47:02 +01:00
64634a0d4d move destructor call from expressions to statements 2020-03-09 12:47:02 +01:00
3fb350ad31 make destructor call inherit from statement 2020-03-09 12:47:02 +01:00
d89c085ecc implement context analysis for destructor node 2020-03-09 12:47:02 +01:00
9300e37fca implement node visitors for the destructor node 2020-03-09 12:47:02 +01:00
995fac20c5 create node that represents a destructor call 2020-03-09 12:47:02 +01:00
31460860d5 add a destructor call to the grammar 2020-03-09 12:47:02 +01:00
441466c83f next time check before commiting everything... 2020-03-09 12:47:02 +01:00
80deae6971 implement visitors for null atom 2020-03-09 12:47:02 +01:00