AVSI is a project for learning that everyone can use as reference to build your own interpreter.
Ruslan's Blog inspired me. That is a useful and valuable blog for learning.
The grammar of AVSI is like shell which is suitable for learning to build an Interpreter.
On Unix and Linux, using the command make
to build project.
[For windows],Unix shell tools(msys, Cygwin, GNUwin32) are needed
Executable file is ./build/Interpreter
Interpreter file [--scope] [--callStack]
example:
./build/Interpreter ./example/pro.sl --scope
refer to ./example
function | Status |
---|---|
I/O | supported |
scope | *partial |
assignment | supported |
expression | supported |
function | supported |
if statement | supported |
for statement | supported |
while statement | supported |
boolean | supported |
number | supported |
string | *partial |
*: global variable is not supported now *: without format
AVSI is licensed under the MIT license