Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 621 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 621 Bytes

saic

Toy compiler with a recursive descent parser. Has support for:

  • expressions
  • statements
  • conditional constructs (if-else)
  • loops (for, while)
  • functions
  • closures

This is a standalone program without any external dependencies. The main function is here.

Quickstart

Getting the source

git clone https://github.com/saisubham/saic.git

Building

Requires Java 11 or higher.

Running the release version

Interactive prompt

java -jar saic

Executing a script

java -jar saic <filename>