594d1a627f
Fix some C string and path resolving issues
2024-09-06 15:39:00 -04:00
9581231408
Remove unused 'import' keyword
2024-09-06 15:01:27 -04:00
fba8c90687
Fix partial edit
2024-09-06 14:50:48 -04:00
4291b36e2c
Fix header compilation
2024-09-06 14:50:00 -04:00
176205a22d
Print stack trace if $TOMO_STACKTRACE is set
2024-09-06 14:41:34 -04:00
817235cfbc
Check for .tm file extension
2024-09-06 14:27:49 -04:00
7b57090564
Use 'when' expression
2024-09-06 14:16:45 -04:00
11fa4f548c
Support 'when' statements as expressions
2024-09-06 14:15:55 -04:00
7239ec4083
Bugfixes for lambdas that have a trailing abort statement (and print
...
statements aren't those)
2024-09-06 12:33:28 -04:00
507b6df5c0
Document coroutine
2024-09-06 12:33:18 -04:00
a7c1d27b09
Example coroutine library
2024-09-06 12:29:36 -04:00
589dacba30
Tweak gitignore
2024-09-06 12:20:58 -04:00
c94fec092e
Add example
2024-09-06 12:19:52 -04:00
79d08c809a
Ensure HELP and USAGE are initialized when running CLI program
2024-09-06 12:18:28 -04:00
b36d4eaf67
Fix test
2024-09-06 12:17:43 -04:00
4b352f89a3
Add Shell dsl type
2024-09-06 11:37:33 -04:00
5221584d28
Minor cleanup
2024-09-06 11:37:16 -04:00
57b9719715
Add convenience function for debug printing
2024-09-06 11:36:42 -04:00
fa56d845c0
Add missing file
2024-09-06 11:35:42 -04:00
c075deeab4
Actual fix for incref issue
2024-09-06 04:14:50 -04:00
dc7ee868a6
Speculative fix for some incref issues
2024-09-06 04:11:00 -04:00
89a1f8a401
Misc fixes
2024-09-06 04:10:41 -04:00
e47c45a93b
Bugfix for "":join(table.keys)
2024-09-06 03:46:35 -04:00
84a4d94ca6
Flush stdout more
2024-09-06 03:29:51 -04:00
c789d25878
Text overhaul
2024-09-06 03:29:07 -04:00
e0356e07c6
Uhhhh, apparently clang treats ??? as a trigraph unless you specify some
...
compiler flags.
2024-09-06 00:28:03 -04:00
44892df4c5
Add Text.trim()
2024-09-06 00:03:28 -04:00
1000423d2b
Some const stuff
2024-09-05 17:06:27 -04:00
bac14fa6c7
Fully clean up siphash code and fix some issues
2024-09-05 16:23:05 -04:00
47e8972427
Update 'use' test to include a '../examples/vectors.tm' import as well
...
as an unnamed import
2024-09-05 15:49:18 -04:00
df61a0805f
Correctly resolve '../' paths
2024-09-05 15:47:00 -04:00
3444d1652d
Add comment
2024-09-05 15:44:49 -04:00
d99f0271ad
Revert "Use stack() macro" (actually needs to work this way)
...
This reverts commit ed36765b42
.
2024-09-05 15:43:52 -04:00
9f8abd5cd1
Add vectors to the examples
2024-09-05 15:41:04 -04:00
72502b099b
Document examples
2024-09-05 15:38:58 -04:00
52717c14e6
Add some examples
2024-09-05 15:37:33 -04:00
ed36765b42
Use stack() macro
2024-09-05 15:35:40 -04:00
e92ea6fe1b
Remove unused macro
2024-09-05 15:33:43 -04:00
04c8fb0362
Replace $Type with Type$info for builtin TypeInfos
2024-09-05 15:31:54 -04:00
391c1b6bde
Rename table_t -> Table_t
2024-09-05 14:57:31 -04:00
abe45a3c25
Rename array_t -> Array_t
2024-09-05 14:56:37 -04:00
c82b664db9
Slightly clean up CLI usage error code for no-argument programs
2024-09-05 14:44:52 -04:00
a8be9efcd3
Rework CLI compilation so that all of the argument parsing is written to
...
the .tm.c file and the runner program is *just* a single function call
to the function that parses args and runs the main function. Also
improved some CLI usage error code
2024-09-05 14:38:37 -04:00
e6aea8c130
Add support for custom HELP for CLI tools
2024-09-05 13:57:48 -04:00
443af763f4
Trim excess blank lines before feeding to indent
2024-09-05 12:51:53 -04:00
e1d0927744
Fix 'empty' clause for integer iteration
2024-09-05 12:44:01 -04:00
34d98f067e
For big or arbitrarily big integers not known to be constant, do full
...
Int$plus(a,b) logic so it's definitely correct and doesn't error.
2024-09-05 12:41:13 -04:00
e91b53f070
Improve codegen for loops by not adding extra braces and just using the
...
integer literal for 64-bit ints when iterating over a numeric value
2024-09-05 12:28:28 -04:00
d801681026
Add early outs for (or) and (and) reducers
2024-09-05 11:51:07 -04:00
0d3c8e16bc
Add iteration-over-comprehension optimization
2024-09-05 11:23:00 -04:00