Skip to content
/ AVSI Public

a very simple interpreter | 實現一個簡單的直譯器

License

Notifications You must be signed in to change notification settings

zsiothsu/AVSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Very Simple Interpreter

Introduce

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.

Build Instructions

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

Usage

Interpreter file [--scope] [--callStack]

example:

./build/Interpreter ./example/pro.sl --scope

Grammar

refer to ./example

What's working

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

License

AVSI is licensed under the MIT license

About

a very simple interpreter | 實現一個簡單的直譯器

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages