Catalog · How the catalog works
Dynamic-Interpreter
The start of an interpreter
- ★ 4 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
Express
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.
Test me
- 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.
So far we have
- [x] Operations:
- [x]
:=+=-=*=/=`&= |= ^=` - [x]
=!=<><=>= - [x]
+-*`**`/|&^`shr shl` - [x]
andorxor
- [x]
- [x] Constructs:
if..elseforwhilerepeatprint - [x] Branch statements:
continuebreakreturn - [x] Data types:
intfloatboolliststringchar... and the "lack" of a datatype:None - [x] Script functions (the basics)
- [x] Methods supports local declarations, tho currently no closures (will error)
- [x] Special expressions:
x if condition else y, more could be added. - [x] 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..

