Skip to content

madhav2302/lua-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua Interpreter

It is an assignment of course Programming Language Principle (COP5556) taught in University of Florida.

About the project

It is simple Lua interpreter built on Java, which performs basic arithmetic operations and function calls in Lua. Grammar for the assignment is here.

The project is divided into 4 parts -

  1. Scanner - It scans the input and generates the token according to Lua language.
  2. Parser (1) - We create Abstract Syntax Tree for basic arithmetic operations.
  3. Parser (2) - We create Abstract Syntax Tree for remaining things like function call, chunk, blocks, etc.
  4. Interpreter - We use the AST and interpret the operations the basic operations parsed by parser.

Assignment documents can be found here.

JUnit Tests -

  1. Scanner Tests
  2. Parser Tests
  3. Interpreter Tests

External Libraries needed -

  1. junit-jupiter-api-5.5.x.jar
  2. apiguardian-api-1.x.x.jar
  3. junit-platform-console-standalone-1.5.x.jar

The above libraries can be downloaded from here.

About

Basic Lua Interpreter build on Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages