diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-08 15:50:18 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-08 15:50:18 -0400 |
commit | 17da3317f2725e454f5dfdcec307b59e57f4df4f (patch) | |
tree | fd2669477cdce5bcdc275a4e15e3c7d2ea801169 | |
parent | b7070892055fbf4a278657a4f108fa5b2558418c (diff) |
added some TODOs
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,10 +8,12 @@ /* TODO: +fix "Could not open file" error use - use with struct members (e.g. SuperPoint ::= struct { use p: Point; }) for accessing struct members (and other things, potentially) with struct["member"], just replace e with a BINARY_DOT +EXPR_IDENT should be a string before typing local structs should not be named in C simplify eval macros with val_to_u/i64 consider replacing weird EXPR_FOR system with just a declaration- would make "for use p := points" easier @@ -33,9 +35,11 @@ make sure that floating point literals are exact as possible have them be in std/math.toc) once you have a bunch of test code, try making more Expression members pointers error on x ::= {return; 3} +maybe macros are just inline functions #returns_code (struct body is a block, to be evaluated at compile time, which returns the actual statements) - struct varargs -macros (specifically, passing untyped expressions to functions) + - also use with functions for macros +passing untyped expressions to macros */ #if defined __unix__ || (defined __APPLE__ && defined __MACH__) |