Aryadev Chavali
27d6a47320
Clean up error message from preprocesser
2024-04-16 15:40:49 +06:30
Aryadev Chavali
e960af2904
Added some VERBOSE checked messages into asm/main
2024-04-15 16:33:22 +06:30
Aryadev Chavali
a70dcf2e3f
~extern "C"~ when including lib/inst.h
2024-04-15 16:26:44 +06:30
Aryadev Chavali
958868714e
main.cpp now preprocesses tokens and prints the output
2024-04-15 05:56:01 +06:30
Aryadev Chavali
9ca93786af
Updated main.cpp for changes to lexer
2024-04-15 05:07:16 +06:30
Aryadev Chavali
f661438c93
Moved read_file to a general base library
2024-04-15 04:55:51 +06:30
Aryadev Chavali
86e9d51ab0
enum -> enum class in lexer
...
This makes enum elements scoped which is actually quite useful as I
prefer the namespacing that enum's give in C++.
2024-04-14 17:17:51 +06:30
Aryadev Chavali
e5ef0292e7
asm/main now tokenises and prints the tokens of a given file
...
With error checking!
2024-04-14 17:11:48 +06:30
Aryadev Chavali
d368a49f56
Implemented a function to read a file in full
...
Uses std::optional in case file doesn't exist.
2024-04-14 17:10:23 +06:30
Aryadev Chavali
98d4f73134
asm/main now prints usage
2024-04-14 17:09:49 +06:30
Aryadev Chavali
0ebbf3ca75
Start writing assembler in C++
...
Best language to use as it's already compatible with the headers I'm
using and can pretty neatly enter the build system while also using
the functions I've built for converting to and from bytecode!
2024-04-14 02:45:48 +06:30