From f4027cae775e3c9c237675f9df35a744d54f3f2e Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Mon, 28 Oct 2024 19:52:29 +1300 Subject: Rewrite assembler This is an almost complete rewrite of the entire assembler from the ground up, with a different parsing strategy and a whole new symbol resolution mechanism for automatically including library files. The assembly syntax has also been slightly modified, with padding tokens now being prefixed with '#' instead of '$', and a block-style anonymous-label syntax which uses the '{' and '}' characters. --- src/translators.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/translators.rs (limited to 'src/translators.rs') diff --git a/src/translators.rs b/src/translators.rs new file mode 100644 index 0000000..cce5633 --- /dev/null +++ b/src/translators.rs @@ -0,0 +1,9 @@ +mod syntactic_parser; +mod semantic_parser; +mod bytecode_generator; +mod symbols_generator; + +pub use syntactic_parser::*; +pub use semantic_parser::*; +pub use bytecode_generator::*; +pub use symbols_generator::*; -- cgit v1.2.3-70-g09d2