diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-02 09:42:04 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-02 09:42:04 +0100 |
| commit | a00e0a5fb93c96460ddec264fc89a726004b94c2 (patch) | |
| tree | 5808921581ff0d68eebf134cc34ccb6d9c3f86e9 /CompilerFrontend | |
| parent | cec81a16c9994b2a6188c17b7b849f165203006c (diff) | |
ccplus: now parsing using another strategy.
cc: fix: r15 used instead of r19 for jlr.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CompilerFrontend')
| -rw-r--r-- | CompilerFrontend/cl/.gitignore | 2 | ||||
| -rw-r--r-- | CompilerFrontend/cl/dparse.d | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/CompilerFrontend/cl/.gitignore b/CompilerFrontend/cl/.gitignore index 8971316..76a16b1 100644 --- a/CompilerFrontend/cl/.gitignore +++ b/CompilerFrontend/cl/.gitignore @@ -5,7 +5,7 @@ bin/cc bin/masm bin/mkcdfs bin/ccplus -bin/cpp2 +bin/cppfront *.c.pp *.cxx.pp diff --git a/CompilerFrontend/cl/dparse.d b/CompilerFrontend/cl/dparse.d new file mode 100644 index 0000000..b6537ec --- /dev/null +++ b/CompilerFrontend/cl/dparse.d @@ -0,0 +1,21 @@ + +/* + * ======================================================== + * + * MP-UX C Compiler + * Copyright WestCo, all rights reserved. + * + * ======================================================== + */ + +module cl.dparse; + +//Parse D syntax, from a line to AST. + +struct ast_type +{ + string p_keyword; + ast_type* p_prev; + ast_type* p_next; +} + |
