summaryrefslogtreecommitdiffhomepage
path: root/CompilerFrontend
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-02 09:42:04 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-02 09:42:04 +0100
commita00e0a5fb93c96460ddec264fc89a726004b94c2 (patch)
tree5808921581ff0d68eebf134cc34ccb6d9c3f86e9 /CompilerFrontend
parentcec81a16c9994b2a6188c17b7b849f165203006c (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/.gitignore2
-rw-r--r--CompilerFrontend/cl/dparse.d21
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;
+}
+