Commit graph

214 commits

Author SHA1 Message Date
Koichi Nakamura
92b7f456f6 Add lib/core.fs 2021-01-13 19:29:46 +09:00
Koichi Nakamura
79c575805c Fixed a bug 2021-01-12 11:41:25 +09:00
Koichi Nakamura
5241c8e2d8 Add typen 2021-01-12 11:37:03 +09:00
Koichi Nakamura
32027f66f3 fix a bug 2021-01-12 11:36:49 +09:00
Koichi Nakamura
ece51b626c Add --version and --runtime 2021-01-11 19:28:33 +09:00
Koichi Nakamura
e7a1560921 rename i386-linux-handwrite to i386-linux-handwritten 2021-01-11 15:20:50 +09:00
Koichi Nakamura
610fe98a8d Changed 'quit' to take return code 2021-01-11 14:20:48 +09:00
Koichi Nakamura
9461a566ee Fixed bugs of >number 2021-01-11 12:01:25 +09:00
Koichi Nakamura
087ce4f918 Fix semantics of >in 2021-01-11 10:53:31 +09:00
Koichi Nakamura
318c57ca56 export spaces 2021-01-11 10:15:04 +09:00
Koichi Nakamura
d014418bb4 Fixed +loop 2021-01-11 10:14:55 +09:00
Koichi Nakamura
3411fec40d Add >body 2021-01-11 10:14:33 +09:00
Koichi Nakamura
4d9876da62 Add unloop 2021-01-11 08:20:50 +09:00
Koichi Nakamura
b55e8df45b Add +loop 2021-01-11 08:09:25 +09:00
Koichi Nakamura
8b5782fc19 fix comment 2021-01-11 07:58:57 +09:00
Koichi Nakamura
9f862f44e1 Test of start < limit at the beginning of do-loop os not necessary 2021-01-11 07:55:39 +09:00
Koichi Nakamura
5c0247875f Export 'state' 2021-01-11 07:38:01 +09:00
Koichi Nakamura
99b11b12bd Fixed a bug of do-loop 2021-01-11 07:37:49 +09:00
Koichi Nakamura
9d88c996d8 fixed a bug of begin-while-repeat loop 2021-01-11 02:27:42 +09:00
Koichi Nakamura
e2bdf855d4 Add missing words 2021-01-11 02:06:57 +09:00
Koichi Nakamura
85ff8085f1 Print lineno in decimal 2021-01-11 02:06:47 +09:00
Koichi Nakamura
a17e38b16d fixed a bug 2021-01-11 02:06:39 +09:00
Koichi Nakamura
db86f87671 Add chars char+ char- 2021-01-11 02:06:24 +09:00
Koichi Nakamura
1d4b77fd90 Add shift operations 2021-01-11 02:06:11 +09:00
Koichi Nakamura
354e5ac4b7 Update README and comment 2021-01-11 01:27:13 +09:00
Koichi Nakamura
4af8f3786e Add welcome message 2021-01-11 01:24:43 +09:00
Koichi Nakamura
419d0d2cb9 rename implementation to version 2021-01-10 20:44:50 +09:00
Koichi Nakamura
226d6d33f3 Update README and comment 2021-01-10 20:42:25 +09:00
Koichi Nakamura
72766e46c5 Fix comment 2021-01-10 19:59:54 +09:00
Koichi Nakamura
73099b43dd Add u< to hand and C version 2021-01-10 19:13:13 +09:00
Koichi Nakamura
66857c28c6 Shrink size of planck (merge / and mod, simplify d and D) 2021-01-10 18:33:08 +09:00
Koichi Nakamura
9054a17e1b Add abs 2021-01-10 17:34:23 +09:00
Koichi Nakamura
41f6ab0bca Add r@ 2021-01-10 17:34:16 +09:00
Koichi Nakamura
bfb5c2ad9a fix typo 2021-01-10 16:28:33 +09:00
Koichi Nakamura
ccfa4d6167 allot does not return addr 2021-01-10 16:15:10 +09:00
Koichi Nakamura
815f1f4f46 Add source and in> 2021-01-10 16:10:33 +09:00
Koichi Nakamura
fc436d8be4 increment lineno 2021-01-10 16:05:19 +09:00
Koichi Nakamura
de1a7cfc1e Implement source-buffer 2021-01-10 15:59:26 +09:00
Koichi Nakamura
af8fc4f57f Change semantics of read-line 2021-01-10 15:58:28 +09:00
Koichi Nakamura
e5756ee04d Add negate 2021-01-10 13:15:05 +09:00
Koichi Nakamura
ee2b48279c copy filename 2021-01-10 13:10:03 +09:00
Koichi Nakamura
d9a01a2818 WIP 2021-01-10 12:27:00 +09:00
Koichi Nakamura
dea1536ff0 Fixed a bug of read-line 2021-01-10 12:26:45 +09:00
Koichi Nakamura
ce31b9160e Add inner interpret loop 2021-01-10 11:28:28 +09:00
Koichi Nakamura
fbe4a77dc4 lineno management 2021-01-10 11:22:10 +09:00
Koichi Nakamura
6c2ae48504 Remove stdout_ which is not used 2021-01-10 11:18:17 +09:00
Koichi Nakamura
673ef4436f Add missing words 2021-01-10 10:47:53 +09:00
Koichi Nakamura
011e79dbc9 Add byte% ptr% int% 2021-01-10 10:47:19 +09:00
Koichi Nakamura
2701d48bd9 minor fix 2021-01-10 10:46:54 +09:00
Koichi Nakamura
7b57c7f864 Add depth and rdepth 2021-01-10 10:46:35 +09:00
Koichi Nakamura
99e8b72521 Use indirect reference for parser functions but not copy&paste 2021-01-10 10:01:44 +09:00
Koichi Nakamura
7c37e01321 instructions 2021-01-10 09:08:27 +09:00
Koichi Nakamura
406b9cea17 space 2021-01-10 01:14:50 +09:00
Koichi Nakamura
56cf2ede18 Use 'implementation' instead of command line arguments 2021-01-10 00:05:46 +09:00
Koichi Nakamura
5942192ada Update welcome message 2021-01-10 00:00:18 +09:00
Koichi Nakamura
8acc4c70ba Changed semantics of litstring 2021-01-09 21:30:02 +09:00
Koichi Nakamura
ad5197f603 Fixed bugs of flush-file 2021-01-09 20:52:47 +09:00
Koichi Nakamura
8d7a344064 Revert "Add indirection to key and emit"
This reverts commit ca9bf42a26.
2021-01-09 19:36:56 +09:00
Koichi Nakamura
da4f8f1ff8 Revert "fix comment"
This reverts commit 6e58030b9a.
2021-01-09 19:36:40 +09:00
Koichi Nakamura
cb8252b648 Revert "Add stdin,sterr and stdout"
This reverts commit 8010052ef6.
2021-01-09 19:35:30 +09:00
Koichi Nakamura
6e58030b9a fix comment 2021-01-09 18:20:37 +09:00
Koichi Nakamura
ca9bf42a26 Add indirection to key and emit 2021-01-09 18:20:09 +09:00
Koichi Nakamura
8010052ef6 Add stdin,sterr and stdout 2021-01-09 18:07:29 +09:00
Koichi Nakamura
c60b5dec5c File I/O 2021-01-09 17:21:58 +09:00
Koichi Nakamura
7fa8883cf2 Add do-loop 2021-01-09 17:21:21 +09:00
Koichi Nakamura
44a011da18 Remove unnecessary name 2021-01-09 17:20:48 +09:00
Koichi Nakamura
0b7363016f Add max and min 2021-01-09 17:20:09 +09:00
Koichi Nakamura
5d43fa67ed replace swap drop by nip 2021-01-09 17:19:51 +09:00
Koichi Nakamura
f57aa2be25 rename str= to streq 2021-01-09 17:16:29 +09:00
Koichi Nakamura
998f87530a rename cmove to memcpy 2021-01-09 17:13:51 +09:00
Koichi Nakamura
6b6a2ed057 fixed a bug 2021-01-08 04:28:53 +09:00
Koichi Nakamura
9608f4f540 minor fix 2021-01-08 04:28:42 +09:00
Koichi Nakamura
f479467600 add succ-buffer 2021-01-08 04:28:25 +09:00
Koichi Nakamura
cdc67b2a5d Add 3dup and 3drop 2021-01-08 04:27:50 +09:00
Koichi Nakamura
93e668bad5 Add [unless] 2021-01-06 17:23:29 +09:00
Koichi Nakamura
fdefd16eda Fixed a bug of %allocate 2021-01-06 17:20:01 +09:00
Koichi Nakamura
7f06ce6600 Add defined? 2021-01-06 17:19:53 +09:00
Koichi Nakamura
ef3e15a3ca WIP Buffered File I/O 2021-01-06 06:07:08 +09:00
Koichi Nakamura
4d9365ad31 Add allocate 2021-01-06 05:28:30 +09:00
Koichi Nakamura
ac97d79c52 Add orelse 2021-01-06 03:33:48 +09:00
Koichi Nakamura
56eb6c7586 read-file and write-file worked 2021-01-06 03:22:01 +09:00
Koichi Nakamura
11f8e6fb9f fix notation 2021-01-06 03:21:31 +09:00
Koichi Nakamura
3b643237b6 WIP File I/O 2021-01-06 03:01:58 +09:00
Koichi Nakamura
68d9c70c7a refine error message 2021-01-06 03:01:24 +09:00
Koichi Nakamura
145faaf502 Add open-file and close-file 2021-01-06 02:12:47 +09:00
Koichi Nakamura
7aa4b2bd09 rename helper functions using (...) 2021-01-06 01:54:45 +09:00
Koichi Nakamura
878b43dd5c fixed a bug 2021-01-06 01:52:34 +09:00
Koichi Nakamura
218112f13c minor fix 2021-01-06 01:13:10 +09:00
Koichi Nakamura
514ba5d1d5 fixed a bug 2021-01-05 23:56:24 +09:00
Koichi Nakamura
989b5e1f61 minor fix 2021-01-05 23:56:14 +09:00
Koichi Nakamura
178c5df235 Wrote syscall0..3 2021-01-05 23:23:09 +09:00
Koichi Nakamura
16ffc302ec Move ready message 2021-01-05 23:22:50 +09:00
Koichi Nakamura
63ca8901e5 add >dfa 2021-01-05 23:22:25 +09:00
Koichi Nakamura
483b5ad607 Fixed a bug 2021-01-05 22:37:38 +09:00
Koichi Nakamura
fc3290c7a8 Treatment of "--gen" option 2021-01-05 21:53:40 +09:00
Koichi Nakamura
8c0cc0abf8 Add abort 2021-01-05 21:53:31 +09:00
Koichi Nakamura
f3acb2f93f minor fix 2021-01-05 21:47:18 +09:00
Koichi Nakamura
921a5f8a23 Redefine compilers using word which uses inputstream 2021-01-05 21:46:49 +09:00
Koichi Nakamura
dd1ad8d1f7 Wrote read-commandline-args 2021-01-05 21:34:29 +09:00
Koichi Nakamura
6e30c23cce Fixed a bug of shift-args 2021-01-05 21:34:16 +09:00