1
Commit Graph

19 Commits

Author SHA1 Message Date
d0f9849098 Fix unnecessary instruction when MOV source and target is equal, add MOV to/from output/input 2023-03-21 18:35:44 +01:00
5500df3991 Add JMP and NOP instructions 2023-03-21 18:34:50 +01:00
f0d4288728 Remove obsolete RegNode 2023-03-21 17:44:25 +01:00
b9898e0a8d Implement JMP instructions and fix a parsing bug, when MOV is called with a register as source 2023-03-21 17:14:40 +01:00
664c28f635 main.cpp: Write the output file in Logisim format 2023-03-21 16:28:09 +01:00
2ab33ed85b Update the CodegenObserver to return a vector 2023-03-21 16:27:55 +01:00
4b9b4d3607 main.cpp: Generate code from AST 2023-03-21 15:49:47 +01:00
2e2e5d8ed3 Fix: Parsing of mov instructions containing a constant, like "MOV 10, reg1" 2023-03-21 15:49:29 +01:00
e92e7d2183 Implement codegen using an Observer 2023-03-21 15:48:42 +01:00
7e1159f785 main.cpp: Parse the test program and print the AST 2023-03-21 14:34:14 +01:00
e2a4ebecf3 Implement AST Observer and AST printer 2023-03-21 14:33:56 +01:00
306e631e64 Implement part of the parser 2023-03-21 14:33:29 +01:00
6993388645 Implement part of the AST structure 2023-03-21 14:33:15 +01:00
d6dc3f3af4 Implement part of the AST structure 2023-03-21 14:33:05 +01:00
0cae53a3d1 Update Token class with subtoken and int conversion 2023-03-21 14:32:30 +01:00
912c3ac496 Lex the input file 2023-03-20 20:00:49 +01:00
07e37a1bb0 Implement a simple lexer 2023-03-20 20:00:34 +01:00
640988eb2e Parse program arguments using Boost::program_options and read the specified input file 2023-03-20 17:50:38 +01:00
e40452a54d CMake: Initial Project Structure 2023-03-20 15:47:49 +01:00