Skip to content

protonpopsicle/lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lang

This is an implementation for Lang, a toy C-like programming language. The compiler is heavily based on examples from the Dragon Book. Lang programs run in a simple virtual stack machine. For a formal definition of the language, see comments in Parser.cpp.

example.src contains a sample program

$ make
$ ./bin/compiler example.src
$ ./bin/run example.lang

About

Toy programming language implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages