diff options
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; +} + |
