X-Git-Url: https://ocean-lang.org/code/?p=ocean-D;a=blobdiff_plain;f=00-TODO;h=8c0efc77bafe710ae709f0a582f47232ed876ca7;hp=2885baacec2cde04f9d40392964eaf7a5a9a35d2;hb=6830d7faa83def1431a9f5a981c008eeb272a5f6;hpb=5a245ff2b74c48d2a50cc8d6f4529ef5abb84837 diff --git a/00-TODO b/00-TODO index 2885baa..8c0efc7 100644 --- a/00-TODO +++ b/00-TODO @@ -1,11 +1,13 @@ This is a living document - delete things when done. Avoid discussion. - Current version (Cataract Creek) -- handle free_type more cleanly?? -- change 'labels' to only be created for 'use' -- handle syntax errors better - recover quickly. -- use precedence levels for expressions +- Warn when left-recursive symbols appear elsewhere, other than at the end + of a production. Might have to special-case Newlines. +- parser not to get into ERROR infinite loop +- sort 'virtual' symbols to end +- allow $xy instead of $3. Chooses shortest bodysym with xy in that order + $xy_2 gives the second one +- allow $TERM terminals to be listed. If so, extras are errors - structs - const fields - anonymous field - array or struct (or pointer to these) @@ -14,21 +16,27 @@ Current version (Cataract Creek) - anon struct field gets fields interpolated - manifest values for arrays and structs [a,b,c] + or [.foo=a, .bar=b] or [ [1]=a, [2]=b] + That last doesn't parse easily, unless we require tags... not a good idea. + [ .[1] = a, .[2] = b ] ?? Maybe. - yet more operators << >> # bit-ops & | ~ &~ op= - split values so I can have an array of just the value (1 byte for u8) -- integers, unsigned, bitfield, float +- integers, unsigned, bitfield, float, double? - pointers - owned or borrowed - pure, loaded, overloaded, augmented - owned: once, counted, collected + - shared or thread-local - array slice - array buffer - can be added to and grows. - char, string search, regexp search - allow "do stuff" as a stand-alone statement (scope) +- 'use' labels *must* appear in case statements. +- re-read parsergen lit-doc and make sure it is still coherent. Next version (Govetts Creek): - functions and procedures