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
sam-astro
d11b8a0c56
Checks for re-intitialization
2021-12-29 17:38:00 -05:00
sam-astro
e7d8f31851
added better functions and stuf
2021-12-29 17:13:04 -05:00
sam-astro
41d4b11ed1
Added function call functionality at one point, also worked on args and started on 'equation' functionaliy, allowing for multiple operations in the same line and parenthesis, like: int g = (y - 4) + ((x + b) / 4)
2021-12-25 17:04:25 -05:00
sam-astro
ce87bdbe81
Get real value of operated on items, just in case they are variables. Other stuff
2021-12-25 15:56:21 -05:00
sam-astro
6c42f6d7d3
Merge branch 'master' of https://github.com/sam-astro/Slang
2021-12-24 23:15:03 -05:00
sam-astro
68e0ed31c0
Added if statements
2021-12-24 23:14:40 -05:00
sam-astro
bf631068a6
Create README.md
2021-12-24 22:31:40 -05:00
sam-astro
95966cfc74
Add project files.
2021-12-24 22:28:46 -05:00
sam-astro
e202d484a1
Add .gitignore and .gitattributes.
2021-12-24 22:28:43 -05:00