0
0
Commit Graph

180 Commits

Author SHA1 Message Date
782c98ca46 📝 remove cst to constant 2022-10-02 19:54:22 +02:00
4d5553d927 🎉 cst command 2022-10-02 18:00:40 +02:00
239c494f5d 🐛 adapt to changed enum name Juicescript.data_type 2022-10-02 17:48:32 +02:00
0623e92d49 🚸 add some more data type validation 2022-10-02 17:46:26 +02:00
dc5006cdb3 💡 fix comment for NUM and STR data type enums 2022-10-02 17:40:58 +02:00
5054f1b51f add find() helper to enums (find enum by name) 2022-10-02 17:40:02 +02:00
12104f6d65 🐛 add missing this. to error_argument() calls 2022-10-02 17:23:36 +02:00
f02344c745 📝 add missing adlias cst to command "get number $1 as string" 2022-10-02 17:19:42 +02:00
94fe0f155f 🎉 mod command 2022-10-02 17:18:08 +02:00
a8022312dd 🚸 improve data type validation 2022-10-02 17:11:03 +02:00
860a58bbc2 🎉 div command 2022-10-02 17:06:34 +02:00
00376c0eb1 🎉 mul command 2022-10-02 16:30:28 +02:00
14443943da 🎉 halt command 2022-10-02 16:19:46 +02:00
f457c83553 🎉 exit command 2022-10-02 16:19:36 +02:00
ddc51b06ce add alias stop for command halt 2022-10-02 16:19:05 +02:00
e49d679740 🚸 validate data types 2022-10-02 16:11:22 +02:00
30e3c5d63c new command sub 2022-10-02 16:11:05 +02:00
06140e3f3f ✏️ fix casing of Juicescript.data_type.BOOL 2022-10-02 16:10:48 +02:00
b21383afcd ♻️ simplify data type checks 2022-10-02 16:10:10 +02:00
72454d3538 code to enter and return from scope 2022-10-02 15:46:04 +02:00
10eca29f76 🧑‍💻 parse optional parameters to min and max count 2022-10-02 15:24:59 +02:00
196f6e755c own stringify helper 2022-10-02 13:32:27 +02:00
42c33d8951 🚸 warn when making parameter variables global 2022-10-02 12:57:10 +02:00
c9a39157ca 🧑‍💻 combine variable and scope stack 2022-10-02 12:38:04 +02:00
5f8e2996e9 🚸 change "flag not found" to warning 2022-10-01 21:26:25 +02:00
0b32991018 make sure parameter names are unique in list 2022-10-01 21:18:53 +02:00
a01f59a545 make sure optional parameters are followed by optional ones 2022-10-01 21:13:45 +02:00
927beb3f1d Merge branch 'main' of https://github.com/drmaxnix/juice-script into main 2022-10-01 21:03:34 +02:00
28b2f65f9b 📝 echo command now creates a new line each time 2022-10-01 21:03:29 +02:00
52b4c83b63
📝 echo command now creates a new line each time 2022-10-01 21:03:10 +02:00
f5e25dfc8d 🎉 ifl command 2022-10-01 21:01:06 +02:00
32271498be 🎉 jmp command 2022-10-01 21:00:49 +02:00
649dfe1837 🎉 add command 2022-10-01 21:00:34 +02:00
c51c1149b4 📝 remove jumping to line number 2022-10-01 20:54:10 +02:00
f107c4548a 🎉 typ command 2022-10-01 20:12:43 +02:00
5ed0341061 variable type helpers 2022-10-01 20:12:34 +02:00
3a1decb368 📝 clarify: echo command creates a new line 2022-10-01 19:55:25 +02:00
19e51a8f31 add method of retrieving random float (rand command) 2022-10-01 19:50:57 +02:00
92ae1f752d 🚸 merge data types int and float into num 2022-10-01 19:49:24 +02:00
88905b304f argument and variables helpers 2022-10-01 19:42:46 +02:00
177cf3ede0 🎉 drw command 2022-10-01 19:42:09 +02:00
7d7f1424dc 🎉 mov command 2022-10-01 19:42:00 +02:00
ddf7163f6d 🐛 don't pretty print null 2022-10-01 17:57:44 +02:00
02bb1a43e9 🐛 add missing value to TRUE and FALSE tokens 2022-10-01 17:55:47 +02:00
528700b582 🏗️ split command definition into validate and execute functions 2022-10-01 17:44:20 +02:00
471b089454 💬 surround scope name with quotation marks at throw "unknown scope" 2022-10-01 17:17:22 +02:00
c0ef3b82c7 🔨 print javascript errors to html console in dev-env 2022-10-01 17:10:04 +02:00
6b3bc93401 💡 improve method description for argument_validate_type 2022-10-01 16:21:10 +02:00
f754c176c4 argument validation helpers 2022-10-01 16:19:59 +02:00
fd2c040662 🚸 warn on unterminated command definition 2022-10-01 16:17:43 +02:00