summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-04-08 15:50:18 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-04-08 15:50:18 -0400
commit17da3317f2725e454f5dfdcec307b59e57f4df4f (patch)
treefd2669477cdce5bcdc275a4e15e3c7d2ea801169
parentb7070892055fbf4a278657a4f108fa5b2558418c (diff)
added some TODOs
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 669835a..ac72097 100644
--- a/main.c
+++ b/main.c
@@ -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__)