Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 03708ef

Browse files
committed
Massive changes
* Using an enum instead of instruction names * Unit tests are successful. * Changed unit test file structure * Added ``Instructions`` lib file for smooth interop between Transpiler/Parser/Compiler * Added the rest of the supported instructions for lua transpiling (bit ops, ternary ?:, include (still not in parser)) * Added LuaTranspile unit test which makes sure that we have all operators implemented in the transpiler.
1 parent 210ff5e commit 03708ef

File tree

13 files changed

+333
-175
lines changed

13 files changed

+333
-175
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ The language is optimized for speed. E2 was known to be very slow, and this is n
2424

2525
## General State
2626
Here's a general status of each part of the language.
27-
| Name | Status | Desc |
28-
| --- | --- | --- |
29-
| Preprocessor | 🚧 | Unfinished |
30-
| Tokenizer | βœ”οΈ| Tokenizer should be completely finished. Some operators and grammar might be missing that I'm unaware of. |
31-
| Parser | πŸš§πŸ—οΈ | It is nearly done, however some things like #include are missing, and some statements/expressions might be buggy. |
32-
| Optimizer | ❌ | Hasn't been started and there are no plans for this yet. |
33-
| Compiler| 🚧 | Unfinished. |
34-
| Transpiler| πŸš§πŸ—οΈ | Unfinished. |
35-
| Tests| 🚧 | Unfinished. |
27+
| Name | Status | Desc |
28+
| --- | --- | --- |
29+
| Preprocessor | 🚧 | No support for directives (I mean what would they do?). Of course they alongside comments are stripped out of code. Missing #ifdef, etc. |
30+
| Tokenizer | βœ”οΈ | Tokenizer should be completely finished. Some operators and grammar might be missing that I'm unaware of. |
31+
| Parser | πŸš§πŸ—οΈ | It is nearly done, however some things like #include are missing, and some statements/expressions might be buggy. |
32+
| Optimizer | ❌ | Hasn't been started and there are no plans for this yet. |
33+
| Compiler | 🚧 | Unfinished. |
34+
| (Lua) Transpiler | βœ”οΈπŸ—οΈ | Mostly done. |
35+
| Tests | βœ”οΈ | Unfinished. |
3636

3737
## Running Tests
3838
Tests are using the [utest](https://github.com/haxe-utest/utest) library.

β€Žsrc/Base/Compiler.hxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package base;
22

33
import haxe.exceptions.NotImplementedException;
4-
import base.Parser.Instruction;
54
import lib.Type.E2Type;
5+
using lib.Instructions;
66

77
using Iterators;
88
using Safety;

0 commit comments

Comments
Β (0)