Skip to content

maierfelix/toy-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a tiny compiler, which is able to compile itself.

  • bin/stub contains the latest generated version (and compiles src/index)
  • src/index contains the compiler, written in minimal "javascript" to be flexible enough for later feature and syntax changes

Bootstrapping:

edit "src/index"
run "node build"
have fun with "bin/stub"

Todo:

  • Sandbox types
  • Type system
  • Precedence based expression parsing
  • More compiling targets e.g. java, python, c#

About

A tiny self-hosted compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published