Commit graph

63 commits

Author SHA1 Message Date
9937365433 update to latest zig 2021-04-03 22:16:04 -03:00
7097334201 turn on gpa 2020-08-18 21:00:16 -03:00
9527426d48 remove memleak when getting args 2020-08-18 20:54:04 -03:00
0cd47be7ac remove need to dupe strings to command structs 2020-08-18 20:53:54 -03:00
708ef45600 fix use-after-free on repl 2020-08-18 20:41:57 -03:00
f61e9b013f make CommandList free its command pointers 2020-08-18 20:40:06 -03:00
fa7e993ec2 zig fmt pass 2020-07-23 16:31:32 -03:00
6d8614e678 revert cloned runner using parsed cmd list 2020-06-02 17:25:03 -03:00
542ba75b01 make repl cloned runner run the runqs cmd 2020-06-02 16:16:49 -03:00
c7eb70a06f ignore lines without commands 2020-06-02 16:16:43 -03:00
ee7ffd1be7 move repl commands to the heap 2020-06-01 23:10:30 -03:00
128f58c502 re-enable repl 2020-06-01 22:35:07 -03:00
e71eba583e make load command own its path memory 2020-06-01 22:34:56 -03:00
f20079b807 disable codepaths not supporting new commands 2020-05-30 22:25:43 -03:00
3de84b5a23 finish arraylist updates 2020-05-12 17:48:15 -03:00
0c2cd5638e update because of arraylist api changes 2020-05-12 17:26:46 -03:00
043556e798 Update README on new env var 2020-04-10 00:20:46 -03:00
9614b96c71 Add SCRITCHER_RUNNER env var
Closes #13
2020-04-10 00:01:23 -03:00
8bb09f1573 fixes for latest zig
- arraylist breaking changes
 - mem.separate => mem.split
 - heap.page_allocator
2020-04-09 23:51:33 -03:00
8261d202bd multiple fixes for latest zig 2020-03-26 16:35:58 -03:00
182d368363 fix for latest zig 2020-01-14 22:31:20 -03:00
a10416e56f fixes for latest zig 2019-12-08 12:14:31 -03:00
bb501d9c1e repl: add output when leaving from c-d 2019-10-20 13:13:32 -03:00
c75db19523 repl: ignore comments
closes #10
2019-10-20 13:12:49 -03:00
cdca993048 remove 'use-after-free' 2019-10-20 11:59:15 -03:00
a18809eb5b repl: handle when original file doesn't exist 2019-10-20 11:37:11 -03:00
c05be26dbd runner: ignore one arg when its in repl
closes #8
2019-10-06 15:16:41 -03:00
7cf16f9ffa deinit existing_cmds (not long lived) 2019-10-06 15:12:19 -03:00
80036c4c0d fix other things related to reading scri file on repl 2019-10-06 15:07:30 -03:00
66b262beb2 repl: open file as read and append to cmds before open as write
closes #7
2019-10-06 14:39:15 -03:00
cb689c3ade repl: use readline 2019-10-06 10:53:09 -03:00
8c5f42b3db add quit/q commands to repl 2019-10-05 21:44:44 -03:00
f8814ca94d add assertions about seek state and seek position 2019-10-05 21:42:16 -03:00
0e323f6631 repl tweaks 2019-09-29 23:57:24 -03:00
49cc7221b0 fix some clones, finish list of commands for printer 2019-09-10 22:00:07 -03:00
84d582cfd1 image: open curpath instead of path when cloning 2019-09-10 21:35:22 -03:00
67c42e39d4 add cloning of Runner and Image + basic Runner REPL logic 2019-09-10 21:31:23 -03:00
88a73e64d8 better repl logic 2019-09-10 15:44:10 -03:00
058bf8deb9 add push and list commands 2019-09-10 14:51:41 -03:00
c90590e3b5 add Lang.reset, open scri_file and write current commands to it 2019-09-10 12:12:10 -03:00
8b67ccc1bf add printing of commands to any stream 2019-09-10 11:45:04 -03:00
736277db04 add parsing of given repl line 2019-09-08 23:28:09 -03:00
34d3b12c56 add basic main loop 2019-09-08 17:27:59 -03:00
fc8dcf4583 add doRepl func 2019-09-08 17:06:19 -03:00
1d86abff5b main: use direct allocator 2019-08-14 16:11:09 -03:00
b66070c4e4 lang: use std.mem.startsWith 2019-08-13 10:19:39 -03:00
9fd41a61bf add runner test + 'zig build test' subcommand 2019-08-08 16:48:31 -03:00
7e6b85ef48 lang: add tests
- lang: add deinit()
2019-08-07 21:04:51 -03:00
2b2eb51dff clean up some debug prints
- free file and command memory on exit
2019-07-10 12:13:44 -03:00
16a082ce0a remove oldMain, add LICENSE 2019-07-10 12:10:09 -03:00