├── .clang-format ├── .clang-tidy ├── .github ├── funding.yml └── workflows │ └── ci.yml ├── CMakeLists.txt ├── LICENSE ├── README.adoc ├── include └── clauf │ ├── assert.hpp │ ├── ast.hpp │ ├── codegen.hpp │ ├── compiler.hpp │ └── diagnostic.hpp ├── src ├── CMakeLists.txt ├── ast.cpp ├── codegen.cpp ├── compiler.cpp └── main.cpp └── tests ├── CMakeLists.txt └── integration ├── arithmetic.c ├── array.c ├── assignment.c ├── cast.c ├── comparison.c ├── conditional.c ├── empty_main.c ├── forward_decl.c ├── global.c ├── heap.c ├── if.c ├── init.c ├── integer_constant.c ├── mutual_recursion.c ├── pointer.c ├── struct.c ├── void.c └── while.c /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/.clang-format -------------------------------------------------------------------------------- /.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/.clang-tidy -------------------------------------------------------------------------------- /.github/funding.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/.github/funding.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/LICENSE -------------------------------------------------------------------------------- /README.adoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/README.adoc -------------------------------------------------------------------------------- /include/clauf/assert.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/include/clauf/assert.hpp -------------------------------------------------------------------------------- /include/clauf/ast.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/include/clauf/ast.hpp -------------------------------------------------------------------------------- /include/clauf/codegen.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/include/clauf/codegen.hpp -------------------------------------------------------------------------------- /include/clauf/compiler.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/include/clauf/compiler.hpp -------------------------------------------------------------------------------- /include/clauf/diagnostic.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/include/clauf/diagnostic.hpp -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/ast.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/src/ast.cpp -------------------------------------------------------------------------------- /src/codegen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/src/codegen.cpp -------------------------------------------------------------------------------- /src/compiler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/src/compiler.cpp -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/src/main.cpp -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/integration/arithmetic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/arithmetic.c -------------------------------------------------------------------------------- /tests/integration/array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/array.c -------------------------------------------------------------------------------- /tests/integration/assignment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/assignment.c -------------------------------------------------------------------------------- /tests/integration/cast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/cast.c -------------------------------------------------------------------------------- /tests/integration/comparison.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/comparison.c -------------------------------------------------------------------------------- /tests/integration/conditional.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/conditional.c -------------------------------------------------------------------------------- /tests/integration/empty_main.c: -------------------------------------------------------------------------------- 1 | // This a comment! 2 | int main() {} 3 | -------------------------------------------------------------------------------- /tests/integration/forward_decl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/forward_decl.c -------------------------------------------------------------------------------- /tests/integration/global.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/global.c -------------------------------------------------------------------------------- /tests/integration/heap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/heap.c -------------------------------------------------------------------------------- /tests/integration/if.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/if.c -------------------------------------------------------------------------------- /tests/integration/init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/init.c -------------------------------------------------------------------------------- /tests/integration/integer_constant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/integer_constant.c -------------------------------------------------------------------------------- /tests/integration/mutual_recursion.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/mutual_recursion.c -------------------------------------------------------------------------------- /tests/integration/pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/pointer.c -------------------------------------------------------------------------------- /tests/integration/struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/struct.c -------------------------------------------------------------------------------- /tests/integration/void.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/void.c -------------------------------------------------------------------------------- /tests/integration/while.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/foonathan/clauf/HEAD/tests/integration/while.c --------------------------------------------------------------------------------