A lexical analyzer, recursive descent parser, and interactive interpreter for the programming language Dugong.
The grammar for Dugong (see parseit.lua
) was defined by Dr. Glenn G. Chappel. Unit tests and the REPL/Shell (dugong.lua
) also by Dr. Chappell.
Requires Lua.
Lua may be installed with:
curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
tar zxf lua-5.3.5.tar.gz
cd lua-5.3.5
make linux test
Alternatively, see https://www.lua.org/download.html
To execute a Dugong program from source:
./dugong.lua DUGONG_SOURCEFILE
Ex: ./dugong.lua dugong_examples/fibo.du
To start an interactive interpreter session:
./dugong.lua
To execute a Dugong program from source:
lua dugong.lua DUGONG_SOURCEFILE
Ex: lua dugong.lua dugong_examples/fibo.du
To start an interactive interpreter session:
lua dugong.lua