Skip to content

odenizddd/Transpiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a transpiler from a mock language called 'advcalc' to LLVM's intermediate representation (IR). It features a simple lexer that tokenizes the source code and a recursive descent parser that creates an abstract syntax tree (AST). Later AST is traversed recursively to produce IR code. Also there is a per-line error reporting mechanism.

To use the transpiler clone the repository to your local machine. Edit 'input.txt' in 'res' to your desired input. Then run 'make run' from within the root of the project. IR code will be placed in '/path/to/output'.

If you are into compiler/interpreter design, check out the links below to the resources I found very useful during the making of this project.

TODO: Add links here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published