Skip to content

johan-bjareholt/lua-interpreter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lua-interpreter

A Flex+Bison Lua 5.1 interpreter.

It has complete grammar support, interpretation however is incomplete.

The first project in the course DV1465, Compiler Techniques at Blekinge Institute of Technology.

Features

  • Integer arithmetic
  • Variables
  • io.read, io.write and print for I/O
  • for, if, while loops
  • functions

Todo

  • Rewrite the type system
  • Refactoring
  • Tables
  • Add support for \n and \t for print/io.write
  • Make a stdlib for filehandling, proper I/O etc