Commit Graph

19 Commits

Author SHA1 Message Date
Marvin Kaiser
aaf1c3195d if statement asm generation now omits else labels if no else was defined 2019-12-17 15:12:36 +01:00
1c686fb0ea Implement variable declaration 2019-12-16 22:41:58 +01:00
63c5f70358 add new node types to the visitors 2019-12-16 21:46:43 +01:00
Marvin Kaiser
ecae26c8a7 Fix: offset calculation for function definitions
Fix: Jumps / Labels in if statement
2019-12-02 17:13:11 +01:00
Marvin Kaiser
b7e6567d69 Fixed main function asm code
Fixed: IntegerValues not passed via rax
Fixed: Some values passed via stack, not via rax
2019-11-26 09:14:44 +01:00
7d17accad5 implement assembler code generation 2019-11-26 08:07:43 +01:00
Marvin Kaiser
37e4db94f2 Implemented GetVars Visitor 2019-11-25 15:29:22 +01:00
5d62ef1d30 start implement a asm code generator visitor 2019-11-25 14:45:52 +01:00
fda65c7d93 implement return statement 2019-11-25 14:45:35 +01:00
d8985bf070 print SCOL after the program's expression, remove whitespace before the OPAR of the funtion definition 2019-11-18 18:57:25 +01:00
2af9f369cf implement variable assignment 2019-11-18 18:54:24 +01:00
b38369b7a5 implemented variables and function call evaluation 2019-11-18 18:02:10 +01:00
Marvin Kaiser
13caee0667 Added function call and function definition 2019-11-18 16:39:12 +01:00
38d34a7cbc implement else if nesting 2019-11-11 22:27:27 +01:00
0021e4da60 shortened import statements 2019-11-11 16:20:08 +01:00
9fa61ed1a4 implement pretty print visitor 2019-11-11 15:50:25 +01:00
af363c729f add method for visiting blocks 2019-11-11 15:50:08 +01:00
b473a627b0 add stub for visiting block statement 2019-11-11 15:49:46 +01:00
c26cb6ddf5 add context analysis and custom visitors 2019-11-04 17:35:15 +01:00