Skip to content

Luminiscental/Clear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clear

This is a project I made to learn about how compilers work. It's comprised of a python program ClearC/ to compile source code in the Clear language to bytecode for the C program ClearVM/ to interpret. A specification for this bytecode/VM can be found here, but there is no spec for the source language for now, examples can be found in test/ (e.g. test/hello.clr demonstrates a large range of the implemented functionality).

To run the ClearC compiler, interpret clrc.py as normal python3 inside the ClearC directory. ClearVM needs to be built with cmake to get an executable clr that can run the generated bytecode.

About

Compiler and VM for a made up language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages