Commit graph

203 commits

Author SHA1 Message Date
Joel Wejdenstål 12e2bee756
add cpython comparison 2022-11-02 13:09:02 +01:00
Joel Wejdenstål 5d130b5271
unchecked access of instruction pc 2022-10-30 22:18:43 +01:00
Joel Wejdenstål dc74c2081a
update tests 2022-10-30 22:04:15 +01:00
Joel Wejdenstål 74cc345fa2
remove bounds checks on register access, speedup from 3.5x to 3.3x measured with reference lua as 1x 2022-10-30 21:55:00 +01:00
Joel Wejdenstål 1a5264cce7
use deque instead of linked list for args 2022-10-30 19:42:54 +01:00
Joel Wejdenstål 098e227a5f
fix interning + while loop bug 2022-10-30 19:40:25 +01:00
Joel Wejdenstål 26c4e6a058
fmt 2022-10-30 14:43:43 +01:00
Joel Wejdenstål 7d1f129250
hello world 2022-10-30 14:43:33 +01:00
Joel Wejdenstål ddb2f1dc0f
yuck 2022-10-29 18:46:39 +02:00
Joel Wejdenstål 0ddb78e7c8
yeet 2022-10-29 18:22:19 +02:00
Joel Wejdenstål d0d7a64bc2
correctly increment pc after call inst 2022-10-29 13:52:07 +02:00
Joel Wejdenstål ffc3a37fbe
fix concat bug 2022-10-29 13:28:33 +02:00
Joel Wejdenstål 610f20350f
escape debug string outputs 2022-10-29 10:52:06 +02:00
Joel Wejdenstål c8157016fb
fix crap 2022-10-28 20:09:14 +02:00
Joel Wejdenstål 00dfc985fb
correctly compile while statements 2022-10-28 20:03:48 +02:00
Joel Wejdenstål 8e94299c89
shit 2022-10-28 19:25:29 +02:00
Joel Wejdenstål 4b387fde1b
add prime benc 2022-10-28 18:47:44 +02:00
Joel Wejdenstål 4eb82d1aad
o crap borrow error 2022-10-28 17:48:03 +02:00
Joel Wejdenstål b1ff396adc
progress fr 2022-10-28 17:31:15 +02:00
Joel Wejdenstål 267bf72933
shit 2022-10-28 16:12:36 +02:00
Joel Wejdenstål 887a764d56
chaos
'
2022-10-27 22:13:04 +02:00
Joel Wejdenstål 6effbb95ab
oopsie 2022-10-27 19:04:59 +02:00
Joel Wejdenstål c519530032
significant api improvements 2022-10-27 18:27:46 +02:00
Joel Wejdenstål 2f9ff7d5b8
update test for 32bit float 2022-10-27 14:22:34 +02:00
Joel Wejdenstål cf1c3d13b8
reimpl with a better value impl 2022-10-27 14:21:25 +02:00
Joel Wejdenstål 95674290c0
ttable 2022-10-27 10:52:42 +02:00
Joel Wejdenstål 1ecb290eed
Merge pull request #88 from xacrimon/joel/cli-exec
Make progress toward CLI execution
2022-06-22 11:40:21 +02:00
Joel Wejdenstål 5ced51dffa
Compiler improvements & native function type 2022-06-21 11:30:34 +02:00
Joel Wejdenstål d0561826c2
Add CLI and a --bytecode command to print the generated code for a given source file. 2022-06-20 18:47:56 +02:00
Joel Wejdenstål f8f58d70e0
Reorganize repository into a workspace 2022-06-16 18:26:02 +02:00
Joel Wejdenstål de7d775648
Merge pull request #87 from xacrimon/joel/improve
Joel/improve
2022-06-09 23:45:53 +02:00
Joel Wejdenstål 8fcf804a87
fmt 2022-06-09 23:26:02 +02:00
Joel Wejdenstål c19e32b8a4
fix stuff 2022-06-09 23:24:53 +02:00
Joel Wejdenstål d4656b947b
deduplicate upvalue captures 2022-06-05 16:02:01 +02:00
Joel Wejdenstål bc36d64930
bugfixes! 2022-06-05 15:27:39 +02:00
Joel Wejdenstål 9474bec401
fmt 2022-06-05 11:36:40 +02:00
Joel Wejdenstål 84c0782173
add test 2022-06-05 11:35:23 +02:00
Joel Wejdenstål fc7a6b3964
avoid unwrap 2022-05-27 21:19:39 +02:00
Joel Wejdenstål bfef792646
Merge pull request #85 from xacrimon/joel/test-compiler
Impl stuff
2022-05-27 17:57:12 +02:00
Joel Wejdenstål c77f86d4da
api refactor 2022-05-27 17:54:31 +02:00
Joel Wejdenstål 3604b69025
impl api scaffolding 2022-05-27 17:37:16 +02:00
Joel Wejdenstål 745194a515
implement table ops 2022-05-27 17:14:51 +02:00
Joel Wejdenstål 36041d2158
fix else chain compilation 2022-05-27 17:03:14 +02:00
Joel Wejdenstål 7417a0fa26
Propagate around errors in the compiler 2022-05-13 16:23:14 +02:00
Joel Wejdenstål 9821508570
Get rid of panics on bad paths 2022-05-13 15:32:16 +02:00
Joel Wejdenstål 2bb0475062
interesting 2022-05-13 07:50:27 +02:00
Joel Wejdenstål 17bf56b4eb
rip gc 2022-05-13 07:42:11 +02:00
Joel Wejdenstål 1caa895dd4
accept test outut 2022-05-10 21:38:48 +02:00
Joel Wejdenstål b4b94d5a36
Something is wrong, I can feel it 2022-05-10 21:38:29 +02:00
Joel Wejdenstål c30052cc6c
fix literal parsing 2022-05-09 21:28:20 +02:00