From 9ba1bb3d2007b37e3392208ef027f88d78e51c3e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 13 Aug 2021 11:36:31 +0200 Subject: cc: some work on the scanner, expression parser --- miniany/REQUIREMENTS | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'miniany/REQUIREMENTS') diff --git a/miniany/REQUIREMENTS b/miniany/REQUIREMENTS index 474e975..cd6ffcf 100644 --- a/miniany/REQUIREMENTS +++ b/miniany/REQUIREMENTS @@ -29,3 +29,15 @@ not implementing: - linker - have compilation units needs a linker do build an executable +- symname[t] printing the symbol and not the number, + requires static initializers for array of char* +- ASTs are basically only useful when you start to optimize, + till then you can use an intermediate format (as C4) does + and a stack machine. They also make the code easier readable. + For use they fore the introduction of pointers, references and structs. + In expression parsing we see, that const folding already needs + an AST, because we should not emit code when still reading + a constant expression. It also seperates syntactical stuff like '[' + from logical stuff like 'declaration of array size' and 'derefencing + a pointer'. + -- cgit v1.2.3-54-g00ecf