Skip to content

A POC that automatically parses a Lisp into Jai code at compile-time

Notifications You must be signed in to change notification settings

judah-caruso/jisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jisp

Simple example showing how you can create a DSL by compiling a custom file on #import, emit Jai AST nodes, and pass that to a workspace for Jai to compile.

Instructions

Just run jai compile.jai

Notes

The Lisp is just a proof of concept so it's missing almost all features. I wouldn't use this as a reference for implementing a compiler/interpreter.

As of now, we can't give Jai a Code_Nodes directly so we have to use Program_Print and add_build_string. Ideally we'd be able to compile our module and pass that directly without converting to a string first.

About

A POC that automatically parses a Lisp into Jai code at compile-time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published