Skip to content

Context free grammar compiler and executor written for learning purposes.

License

Notifications You must be signed in to change notification settings

theoden8/tiny-compiler

Repository files navigation

Tiny Compiler

Author

Created by Kirill Rodriguez on 08/2015.

Program

This program is a tiny compiler for c-like syntax language. It uses a simple if-else automata to tokenize the code, Earley parser algorithm to parse into a tree, compiler to translate the tree into virtual machine instructions, which are then executed.

The program poorly supports pydoc and only runs in verbose mode.

Usage

To run the program (runs only in verbose mode), use the following command:

python main.py < source < syntax_clike

References

About

Context free grammar compiler and executor written for learning purposes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published