Skip to content

foxidokun/ReverseLang

Repository files navigation

Reverse lang

Theory

We have our common standard of abstract syntax tree (AST) that represents program on our programming languages.

And it will be written here at some point in the future...

This project contains the following parts:

  • Frontend converts code to AST or AST to code
    • Lexical analyzer splits code into tokens for syntax analyzer.
    • Syntax analyzer converts tokens to AST.
  • Middleend simplifies AST by collapsing constants and deleting neutral elements
  • Backend assembles AST to my own assembler language that can be executed on my own processor
  • Processor emulator of real processor that can execute programs on my assembler language (git submodule)

Practice

  1. Download repository & compile
git clone --depth=1 --recurse-submodules https:/foxidokun/ReverseLang
cd ReverseLang
make all
  1. Compile examples && have fun
./compile_and_run.sh ./examples/fin.edoc

About

Don't try to understand it. Feel it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published