259 Commits

Author SHA1 Message Date
sam-astro
5f04668ea9
Added key handling and Update function executer 2022-01-12 08:49:03 -05:00
sam-astro
dc3917d37b
Added some input 2022-01-12 08:24:25 -05:00
sam-astro
6b1f311036
Started on collisions 2022-01-12 07:57:25 -05:00
sam-astro
74da7a7590
Added Vec2 initialization 2022-01-11 22:40:54 -05:00
sam-astro
aa312cbc3b
Changed to system type 2022-01-11 22:39:13 -05:00
sam-astro
ab015b0cef aaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAGHGHGHGGHGHHGHGHGGHGHGHGHGHGHGHGHGHHG 2022-01-11 21:53:47 -05:00
sam-astro
59d0bd5c56 Almost done implementing simple graphics!! (hopefully) 2022-01-11 19:51:09 -05:00
sam-astro
036470a14e Started working on rendering 2022-01-10 20:37:16 -05:00
sam-astro
7f2717cd5e
Merge from optimized
Optimized entire interpreter
2022-01-10 16:28:04 -05:00
sam-astro
42bf1cccce FINALLLY!!!!!!!!! Working version !! 2022-01-10 16:22:55 -05:00
sam-astro
bde9ed7222 xdfg 2022-01-10 14:58:31 -05:00
sam-astro
7b737d7799 hgf 2022-01-06 18:41:41 -05:00
sam-astro
41b90c3b4b (slightly) working version. Includes to other files needs fixing, then it should work 2022-01-06 16:51:04 -05:00
sam-astro
b99cb9ba82
Update builtin.h 2022-01-06 07:29:30 -05:00
sam-astro
1702ae73b0
Update builtin.h 2022-01-06 07:27:08 -05:00
sam-astro
79b1b7102d Fixed most errors, moved things around 2022-01-05 15:51:44 -05:00
sam-astro
b1a1133d85 Revert "Changed to switch case for Equ and BooleanLogic and added warnings"
This reverts commit d761591b14ee3cee5a24199765325d72002fd57e.
2022-01-05 15:10:55 -05:00
sam-astro
741e05b500
Changed to const references 2022-01-05 10:53:18 -05:00
sam-astro
3448f39203
Update main.h 2022-01-05 10:49:07 -05:00
sam-astro
40bb09d7c8
Changed to const references 2022-01-05 10:47:54 -05:00
sam-astro
f61fa77952
Changed to const references 2022-01-05 10:46:39 -05:00
sam-astro
20415f4ca2
Changed to const references and added warning 2022-01-05 10:45:29 -05:00
sam-astro
4d820e24aa
Changed name of evalEqu to varOperation 2022-01-05 10:41:39 -05:00
sam-astro
d761591b14
Changed to switch case for Equ and BooleanLogic and added warnings 2022-01-05 10:20:26 -05:00
sam-astro
26cc5eeeb4
Warn on function doesn't exit 2022-01-05 10:02:15 -05:00
sam-astro
ec0e412217
Added exception errors 2022-01-05 09:59:08 -05:00
sam-astro
5df1c50c16
Added warnings and errors and created functions for cleaner code 2022-01-05 09:54:02 -05:00
sam-astro
22fa7fd57f
Changed catch error type to boost::bad_any_cast 2022-01-05 09:24:21 -05:00
sam-astro
c705771eaa
ProcessLine if else, inline exist checks
ProcessLine now does checks with if else statements, which should hopefully improve performance, and exist checks are inline if statements, so a new variable doesn't need to be initialized for a single use.
2022-01-05 09:17:03 -05:00
sam-astro
4fb5500cc3
Actually, these are the new function changes 2022-01-05 08:50:33 -05:00
sam-astro
ddf09173e4
Updated to newest function syntax 2022-01-05 08:43:28 -05:00
sam-astro
1cc2e9abe7
Updated to new function syntax 2022-01-05 08:41:25 -05:00
sam-astro
83404f266f
Changed many function inputs to const
Removed unnecessary loops in ExecuteFunction which used a lot of time. Function arguments also now no longer require a type, just a name. Also, functions don't need a pre-defined return value (ex. void or int), and just have a functions declarer 'func' before the name.
2022-01-05 08:37:28 -05:00
sam-astro
c360238d78 Continued conversion into 'any' variable and function storage 2022-01-03 18:33:07 -05:00
sam-astro
a25df38803
Update builtin.h 2022-01-03 13:58:14 -05:00
sam-astro
93eff0b337
Updated functions and var gathering 2022-01-03 13:52:54 -05:00
sam-astro
aba94781ba
Update main.h 2022-01-03 13:34:31 -05:00
sam-astro
e72f58810e
Update builtin.slg 2022-01-03 13:32:34 -05:00
sam-astro
e17b89b972
Update builtin.h 2022-01-03 13:24:41 -05:00
sam-astro
f4a5f3d0e2
Continue converting to "any" type 2022-01-03 13:19:35 -05:00
sam-astro
f796358af6
Removed for loops in place of .substr() 2022-01-03 12:05:54 -05:00
sam-astro
392879fbad
Started optimization with unordered_map hash table 2022-01-03 11:51:49 -05:00
sam-astro
2880d7e007 Performance fix 2022-01-02 15:59:30 -05:00
sam-astro
9874d03b3f Added many built-in functions and variables, also allowed for displaying graphics.
Graphics are currently *very* slow, and that is due to my underlying code. I will need to spend the next week or so just optimizing.
2022-01-02 15:33:17 -05:00
sam-astro
435d2a2270 Added strig differentiation, and am making cross-referencable functions that can be made in c++. Also made a "builtin.slg" file to load built-in functions and variables written in slang 2022-01-02 11:41:53 -05:00
sam-astro
29f4ad704f
Update Main.cpp 2022-01-01 23:46:31 -05:00
sam-astro
49c26219fc Worked on evaluator and concatenating strings
Next I need to better differentiate raw and quoted strings because the system converts at the wrong time and never converts back
2022-01-01 22:53:35 -05:00
sam-astro
ee8197a921 Created expression evaluator, and allow for comments and commenting out code 2022-01-01 17:02:48 -05:00
sam-astro
0a7a8fb709 Changed the ending once again 2022-01-01 14:09:54 -05:00
sam-astro
58db74ee73 changed file ending for script to a less used one 2021-12-30 21:26:42 -05:00