Currently this is a simple and experimental core of a scripting language.
The language design is mostly inspired by Python, JavaScript and some inspiration from Object Pascal.
- open
cmd.exein the same folder as main.exe - run:
main.exe path/to/file.xpr
Alternative last startup-argument: A number to set max length of printed bytecode.
- Operations:
-
:=+=-=*=/=&= |= ^= -
=!=<><=>= -
+-***/|&^shr shl -
andorxor
-
- Constructs:
if..elseforwhilerepeatprint - Branch statements:
continuebreakreturn - Data types:
intfloatboolliststringchar... and the "lack" of a datatype:None - Script functions (the basics)
- Methods supports local declarations, tho currently no closures (will error)
- Special expressions:
x if condition else y, more could be added. - Garbage collector - which might, or might not work properly...
Could be more stuff that I've failed to mention. But keep in mind that many feature added is probably iffy, and a lot of error handling is lacking..