Scott Richmond scott
  • Joined on 2023-07-29
scott closed issue twc/ludus#12 2024-05-18 22:24:28 +00:00
String interpolation: make it work
scott commented on issue twc/ludus#12 2024-05-18 22:24:20 +00:00
String interpolation: make it work

Stood up, with no glaring bugs, in 265f867a71

scott pushed to to_janet at twc/ludus 2024-05-18 22:22:53 +00:00
265f867a71 fix string interpolation
scott opened issue twc/ludus#35 2024-05-18 22:18:38 +00:00
Improve parser errors on extra exprs/tokens on line
scott opened issue twc/ludus#34 2024-05-18 22:07:23 +00:00
Comment on last line of file causes scanner to die
scott commented on issue twc/ludus#28 2024-05-18 21:58:42 +00:00
String patterns

Implemented in 5deab18356. Not closing yet for to do more testing. At current, the following works as expected:

match "You are the eggman" with {
  "I {verb} the {noun}" -> (verb, noun)
…
scott pushed to to_janet at twc/ludus 2024-05-18 21:49:55 +00:00
5deab18356 string patterns should now be working
014da297d0 more cleanup still
88aaf864ab more cleanup
Compare 3 commits »
scott commented on issue twc/ludus#33 2024-05-18 21:48:22 +00:00
WASM: wire it up!

Okay. I figured out how to do this, more or less.

Zig is great, but its build system is very powerful, very complicated and seriously under-documented.

(See, e.g., https://ziggit.dev/t/buildi

scott pushed to to_janet at twc/ludus 2024-05-18 21:04:29 +00:00
95054ef234 add match exprs
41cd39df2e check + compile string patterns; some cleanup, some messes still
32cf7d6cc4 add expr to match to matchh
b5d23b26ec ensure :errors is always a tuple or array, never nil; allows (empty? (scanner :errors)) to work as a test for errors
Compare 4 commits »
scott opened issue twc/ludus#33 2024-05-16 18:31:52 +00:00
WASM: wire it up!
scott pushed to to_janet at twc/ludus 2024-05-16 17:57:30 +00:00
b0c912b16c don't die when trying to check arity of a nonexistent function
scott commented on issue twc/ludus#32 2024-05-16 00:10:08 +00:00
Mutual recursion
scott opened issue twc/ludus#32 2024-05-15 23:04:03 +00:00
Mutual recursion
scott pushed to to_janet at twc/ludus 2024-05-15 16:33:58 +00:00
d5f593b0f3 tuple patterns, with splats!
e0919e771d bugfix
Compare 2 commits »
scott pushed to to_janet at twc/ludus 2024-05-15 04:05:31 +00:00
399f1fd4c7 make progress; WIP: interpreting pattern matching
scott pushed to to_janet at twc/ludus 2024-05-15 00:45:00 +00:00
3a8a236f01 start work on interpreter
c68d08e8b2 fix imports
Compare 2 commits »
scott commented on issue twc/ludus#5 2024-05-14 22:59:27 +00:00
pkgs and nses

Accepted, and implemented in scanner, parser, validator.

scott pushed to to_janet at twc/ludus 2024-05-14 22:56:22 +00:00
3e9f38ef5c update notes
b6e1d0e6ec clean up files
bc17fe5006 successfully flag tail calls
Compare 3 commits »
scott pushed to to_janet at twc/ludus 2024-05-14 22:41:27 +00:00
5fbafbac94 make progress: many things
ec43aa3c67 accept newlines after arrows in fn clauses; make some asts mutable for validation
3225ea2472 improve pkg
67cd9d479b keywords must start with lower case
Compare 4 commits »
scott pushed to to_janet at twc/ludus 2024-05-14 01:07:32 +00:00
3b3071adb0 capture unvalidated notes from parser as todos