Commit Graph

60 Commits

Author SHA1 Message Date
minjaesong
f74a1ee342 basic: NEXT with arguments will be left for future version :p 2020-11-18 15:54:12 +09:00
minjaesong
4288f8c41b basic: fix bug where you couldnt print number 0 2020-11-18 15:24:09 +09:00
minjaesong
8568a721ff basic:FOR works with limited function of NEXT 2020-11-18 11:46:24 +09:00
minjaesong
89c4f9ac6f basic:fix a bug where you couldnt call no-arg function without parens 2020-11-17 11:51:08 +09:00
minjaesong
3aca6c84be antialiased font 2020-11-16 13:30:20 +09:00
minjaesong
88ad549553 basic: for loop init 2020-11-15 22:52:29 +09:00
minjaesong
a077247825 basic: = to return its RH 2020-11-15 21:43:50 +09:00
minjaesong
c6eecdcac8 basic: indexing an array 2020-11-15 17:56:44 +09:00
minjaesong
552cd6da0e basic:fixed broken PRINT and some others 2020-11-15 17:40:58 +09:00
minjaesong
7db476d095 basic: more debuggable property names and broke PRINT statement 2020-11-15 16:31:01 +09:00
minjaesong
f1f679eb4b basic: updating comments for array 2020-11-15 11:43:33 +09:00
minjaesong
7774433e18 basic: array building using TO and STEP 2020-11-15 11:35:47 +09:00
minjaesong
b2da296602 basic: parsing for's TO and STEP as operators 2020-11-15 01:30:00 +09:00
minjaesong
723c31b93e basic:fixing some bugs on the parser 2020-11-15 00:39:29 +09:00
minjaesong
da595f548d basic:for-next wip todo 2020-11-14 16:54:54 +09:00
minjaesong
4977829c38 basic:catalog function (same as ls/dir) 2020-11-14 14:13:46 +09:00
minjaesong
34cfec60c7 basic:load function 2020-11-14 13:58:11 +09:00
minjaesong
4af9df40a2 basic:filesystem -> fs 2020-11-14 12:50:40 +09:00
minjaesong
5c73205d44 basic:SAVE function, filesystem:write 2020-11-14 11:56:05 +09:00
minjaesong
8220732db9 touch.js 2020-11-12 14:37:37 +09:00
minjaesong
78df4d2971 basic: turning some global fns to local 2020-11-09 13:46:48 +09:00
minjaesong
5167bf1034 reverting new js eval impl 2020-10-28 23:42:55 +09:00
minjaesong
664a4ca758 more nashorn nonsense 2020-10-28 14:57:50 +09:00
minjaesong
51dce0658d little fixes and additions to basic 2020-10-23 11:17:34 +09:00
minjaesong
9ecacb7ece draft of the VCD-programming thing 2020-07-23 15:00:41 +09:00
minjaesong
9aaf6200eb PRINT function to differentiate , and ; 2020-06-25 21:20:14 +09:00
minjaesong
8a638df3fc BasicAST: ability to distinguish two different separators 2020-06-24 12:26:45 +09:00
minjaesong
0bd920a5a5 inlining some func 2020-06-17 20:38:38 +09:00
minjaesong
41164f8908 fixing null nextLine when IF condition is false and has no ELSE 2020-06-17 19:28:06 +09:00
minjaesong
730633c23f more BASIC operators|parsing binary literals 2020-06-17 18:05:12 +09:00
minjaesong
51e508e5bd if and == works 2020-06-17 15:59:03 +09:00
minjaesong
fe6475d322 ^C status wont spill into the next round|memvwr 2020-06-17 09:36:34 +09:00
minjaesong
8b9a16bbd1 null argument to support print w/o newline|new EMIT fn for BASIC 2020-06-16 10:02:04 +09:00
minjaesong
4e9dcf71e0 ^C works now 2020-06-16 08:15:57 +09:00
minjaesong
810e9e0c0b working goto but ^C doesnt work 2020-06-15 18:54:52 +09:00
minjaesong
72058492b9 unary plus/minus has seemingly correct precedence | POW op breaks parser 2020-06-15 11:57:33 +09:00
minjaesong
cbded369b6 reading variables properly | parser has bad op precedence 2020-06-15 08:45:18 +09:00
minjaesong
19cc6f56b8 variable assignment 2020-06-14 18:43:35 +09:00
minjaesong
14667fd22c executing print hello world 2020-06-14 16:26:39 +09:00
minjaesong
f21ebdbf56 parsing of function call w/o paren 2020-06-14 14:36:10 +09:00
minjaesong
d5e7ca8e43 if statement parsing 2020-06-14 09:05:36 +09:00
minjaesong
d5f30489fd more comments 2020-06-12 03:09:59 +09:00
minjaesong
4d4154b811 fixing bad number tokenising 2020-06-11 15:59:07 +09:00
minjaesong
7a1d36e5c1 even better working parser 2020-06-11 11:17:59 +09:00
minjaesong
b22797e942 mostly working parser 2020-06-11 10:15:41 +09:00
minjaesong
b2fea56a9f parser wip 2020-06-11 09:43:48 +09:00
minjaesong
51060b346b ability to parse infix operators but not unary 2020-06-11 07:53:36 +09:00
minjaesong
655f955fc5 fixing my stupid mistake 2020-06-10 14:53:26 +09:00
minjaesong
faa6f9182d more elaborate state machine to tokenise numbers (in limited form) and operators there 2020-06-10 14:08:56 +09:00
minjaesong
f357e15a88 parsing works with polish notation, need function to turn infix to polish 2020-06-10 07:08:18 +09:00