Skip to content

Interpreter for MonkeyLang from scratch in C

Notifications You must be signed in to change notification settings

dottharun/lilac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lilac

Experimental interpreter written from scratch in c

lilac_lexer-2024-10-12_21.14.41.mp4
lilac_parser-2024-10-12_21.21.23.mp4

setup

Build Deps

  • clang > 18.1.8
  • wget

Build

  • make deps to setup include file deps
  • make or make all to build the app in out/

Dev Env

  • uses bear to build compilation_database for lsp
    • make compile-db

Testing

  • make test builds the test_runner in out/, then just run it with ./out/test_runner
  • Lilac uses greatest for the test suites
    • so separate test suites can be ran via -s flag with many other options

usage

Build the binary output with make command.

For lexer output:

./out/lilac --lexer

For parser output:

./out/lilac --parser