Skip to content

A lexical analyzer, recursive descent parser, and REPL for the Dugong programming language.

Notifications You must be signed in to change notification settings

dustinfast/dugong

Repository files navigation

Dugong

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.

Dependecies

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

Usage

Linux

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

Windows Users

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

About

A lexical analyzer, recursive descent parser, and REPL for the Dugong programming language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages