Commit graph

174 commits

Author SHA1 Message Date
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
Koichi Nakamura
afa21387f1 fixed a bug 2021-01-04 23:00:16 +09:00
Koichi Nakamura
e46dd0994a Fixed a bug 2021-01-04 22:41:22 +09:00
Koichi Nakamura
bf1ee84b2e fix comment 2021-01-04 22:37:28 +09:00
Koichi Nakamura
acd30d307d Fix '\n' 2021-01-04 22:23:54 +09:00
Koichi Nakamura
f9acc5b061 Fix comment 2021-01-04 22:21:48 +09:00
Koichi Nakamura
1cd2f5c8ac BREAKING CHANGE: Changed Pascal string to C-string 2021-01-04 21:57:52 +09:00
Koichi Nakamura
f0e5b2ddb7 Remove unnecessary comments 2021-01-04 17:38:25 +09:00
Koichi Nakamura
e6474bd918 Add read-line and key-file 2021-01-04 17:05:48 +09:00
Koichi Nakamura
9be13d26ce Add input stream stack 2021-01-04 16:14:14 +09:00
Koichi Nakamura
81f07797dc Rename SUCCESS to success 2021-01-04 15:42:14 +09:00
Koichi Nakamura
e30be2e802 fix typo 2021-01-04 15:40:31 +09:00
Koichi Nakamura
9ecd13120e Remove fileop% 2021-01-04 15:35:55 +09:00
Koichi Nakamura
93b51d7cf8 fix indent 2021-01-04 11:11:56 +09:00
Koichi Nakamura
fa2ac12c55 Change name of constants uppercase 2021-01-04 11:10:46 +09:00
Koichi Nakamura
f20138a855 Add operations for defining struct 2021-01-04 10:20:51 +09:00
Koichi Nakamura
ca8f5a191f Add .s 2021-01-04 09:32:16 +09:00
Koichi Nakamura
0327f5e68b u.r and .r does not output following space 2021-01-04 09:31:40 +09:00
Koichi Nakamura
76c605af84 Add invert 2021-01-04 09:31:24 +09:00
Koichi Nakamura
c01cd8cc50 drop 2nd stage 2021-01-03 18:44:51 +09:00
Koichi Nakamura
eae23f223d Switched to 3rd stage interpreter 2021-01-03 18:40:30 +09:00