Simon Forman
2ad303c247
A bit more docs.
2022-09-09 11:58:35 -07:00
Simon Forman
f2791c02c3
Move ParseError to parser section; add a few type guards.
2022-09-08 20:59:12 -07:00
Simon Forman
f08db94db1
Minor cleanup.
2022-09-08 14:25:02 -07:00
Simon Forman
359131f7b1
Expression objects.
...
This should be more efficient than concat().
2022-09-08 11:31:09 -07:00
Simon Forman
eecc983b99
blacken
2022-09-08 10:37:46 -07:00
Simon Forman
d7f047cee6
move stack code up under interp & minor edits
2022-09-08 09:06:26 -07:00
Simon Forman
20c4b90298
make type checks into Joy functions
2022-09-08 08:46:34 -07:00
Simon Forman
ebdb8da03d
move type checks and exceptions to bottom
2022-09-08 08:27:47 -07:00
Simon Forman
ac326590db
minor cleanup
2022-09-07 23:43:50 -07:00
Simon Forman
9bb31cbc8a
Minor cleanup.
2022-09-07 21:01:07 -07:00
Simon Forman
2c0a0aafcc
halt and quit
...
halt captures the rest of the pending expression and stops evaluating,
but the interpreter loop keeps running.
quit ends the interpreter session and quits the Thun program.
2022-09-07 20:42:48 -07:00
Simon Forman
08f977324f
Passes (updated) tests.
...
https://git.sr.ht/~sforman/joytest
2022-09-07 20:33:13 -07:00
Simon Forman
7594fb887f
Harden up the types.
2022-09-07 19:39:00 -07:00
Simon Forman
d7b445fdd4
Quiet mode for testing. Misc cleanup.
2022-09-07 17:27:36 -07:00
Simon Forman
660fdb0bef
Just put ≡ inline.
2022-09-07 14:46:26 -07:00
Simon Forman
88f3cc4bbe
Blacken the code.
2022-09-07 14:21:33 -07:00
Simon Forman
4f48ffbb5f
Type-guard the ops.
2022-09-07 14:18:55 -07:00
Simon Forman
67fd88f68a
Words and Help; use ≡ for definitions.
...
By using ≡ for definitions I can put docs in the DEFS string and easily
detect definitions by having them be each on their own line.
2022-09-07 13:13:46 -07:00
Simon Forman
29e6f160c6
It's a script.
2022-09-07 11:57:57 -07:00
Simon Forman
95366dde07
More docstrings.
2022-09-07 11:54:29 -07:00
Simon Forman
237f9bcfce
Docstrings.
2022-09-07 11:46:59 -07:00
Simon Forman
51664c5856
Pylint is kind useless on this one.
2022-09-07 11:18:08 -07:00
Simon Forman
acd0424287
Boolean literals.
2022-09-07 11:13:12 -07:00
Simon Forman
9fbcab6896
Docs (and strip trailing blanks.)
2022-09-07 10:42:20 -07:00
Simon Forman
be13b72d93
Blacken the code (simplejoy.py)
...
I don't like it entirely but that's the point: nevermind your taste,
just use a simple and universal (Ha!) standard format(ter) and get on
with your life.
2022-09-07 09:41:08 -07:00
Simon Forman
b386549226
Simple Joy
2022-09-07 09:23:02 -07:00