Skip to content

jmandevel/requite-prototype-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requite Prototype Compiler

This is a prototype compiler of the Requite programming language, completed in in a few months in the Summer of 2024. The language has evolved significantly since then.

Stages

  1. Read source files
  2. Parse abstract syntax tree for each file
  3. Catalogue types and functions (so there is no need for forward declarations later)
  4. Build ir with LLVM
  5. Output intermediate files with LLVM.

This compiler has no linker. To link output object files, you need to use another compiler such as Clang.

Syntax Examples

Example files can be found in the test_sources folder. There are no command line options yet, and all configuration should be done by changing the C++ source code in <src/main.cpp>. When running the test source files, make sure that there is only one entry_point operation across all source files. Some files contain definitions used by other sources, so you need to compile them together. For further instructions, look at the <test_sources/test.bash> file.

About

No description, website, or topics provided.

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages