Commit graph

194 commits

Author SHA1 Message Date
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
Koichi Nakamura
f71413d42b fixed a bug of do-loop 2021-01-05 21:34:06 +09:00
Koichi Nakamura
8356ff933a move error codes 2021-01-05 21:33:56 +09:00
Koichi Nakamura
4004fd7689 Command line arguments 2021-01-05 18:45:14 +09:00
Koichi Nakamura
c21c424d25 Fixed a bug 2021-01-05 18:19:36 +09:00
Koichi Nakamura
b1ed4e474a Add rpick 2021-01-05 18:19:26 +09:00
Koichi Nakamura
e000fb42ae minor fix 2021-01-05 18:19:21 +09:00
Koichi Nakamura
d55fb0064c fix typo 2021-01-05 11:38:21 +09:00
Koichi Nakamura
8c16f3072d Add newline after .s 2021-01-05 11:33:18 +09:00
Koichi Nakamura
d15eda8a11 Fixed a bug 2021-01-05 10:00:16 +09:00
Koichi Nakamura
051fd0eb2f fixed a bug 2021-01-05 09:56:59 +09:00
Koichi Nakamura
9af496fd66 Add [if]..[else]..[then] 2021-01-05 09:19:04 +09:00
Koichi Nakamura
f1b92c39d7 Fixed a bug 2021-01-05 09:18:53 +09:00
Koichi Nakamura
410a5c2ed0 minor fix 2021-01-05 08:17:54 +09:00
Koichi Nakamura
6ea40bd3dc Wrote 4th stage interpreter 2021-01-05 07:51:02 +09:00
Koichi Nakamura
de3584b1d5 Add comments 2021-01-05 07:25:08 +09:00
Koichi Nakamura
b2c60e43f2 rewrite existing parsers 2021-01-05 07:01:53 +09:00
Koichi Nakamura
ea1a3eeba2 rename input-streams to inputstreams 2021-01-05 07:01:40 +09:00
Koichi Nakamura
c0def0604b rename input% to inputstream% 2021-01-05 07:00:32 +09:00
Koichi Nakamura
de1c998355 fixed a bug of key-file 2021-01-05 07:00:13 +09:00
Koichi Nakamura
00d61b4ad4 minor fix 2021-01-05 06:59:58 +09:00