Skip to content

LLVM-based code generator for CENG444 term project experimental language VLang

Notifications You must be signed in to change notification settings

ozansz/vlang-llvm-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sazak's VLang Compiler

This is a minimal code generator written using Flex, Bison and LLVM.

See Cem Bozşahin's repo for VLang specs.

Usage

To compile the compiler, just run make:

make

It will generate parser, irgen and compiler executables.

Tools

cat source_code_file.v | ./parser
cat source_code_file.v | ./irgen
cat source_code_file.v | ./compiler

The compiler generates a LLVM IR code to file out.ll