zegl / Tre
Licence: mit
LLVM backed progamming language (Go subset)
Stars: ✭ 100
Programming Languages
Projects that are alternatives of or similar to Tre
Llvm Vs2017 Integration
MSBuild 15.0 Toolset integration for multiple LLVM (From v5 to v8)
Stars: ✭ 84 (-16%)
Mutual labels: llvm, clang
Clangkit
ClangKit provides an Objective-C frontend to LibClang. Source tokenization, diagnostics and fix-its are actually implemented.
Stars: ✭ 330 (+230%)
Mutual labels: llvm, clang
Llvm 9.0 Learner Tutorial
A blog for LLVM(v9.0.0 or v11.0.0) beginner, step by step, with detailed documents and comments. Record the way I learn LLVM and accomplish a complete project for FPGA High-Level Synthesis with it.
Stars: ✭ 58 (-42%)
Mutual labels: llvm, clang
clang-format-editor
Clang-Format Editor is a tool that helps you find the best Clang-Format Style for your C++, C#, Java, JavaScript, and Objective-C code.
Stars: ✭ 15 (-85%)
Mutual labels: llvm, clang
Zapcc
zapcc is a caching C++ compiler based on clang, designed to perform faster compilations
Stars: ✭ 1,109 (+1009%)
Mutual labels: llvm, clang
Swiftweekly.github.io
A community-driven weekly newsletter about Swift.org
Stars: ✭ 305 (+205%)
Mutual labels: llvm, clang
Meta Clang
Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project
Stars: ✭ 76 (-24%)
Mutual labels: llvm, clang
Clang Power Tools
Bringing clang-tidy magic to Visual Studio C++ developers.
Stars: ✭ 285 (+185%)
Mutual labels: llvm, clang
Enzyme
High-performance automatic differentiation of LLVM.
Stars: ✭ 418 (+318%)
Mutual labels: llvm, clang
llvm-project-prepo
Fork of LLVM with modifications to support a program repository
Stars: ✭ 27 (-73%)
Mutual labels: llvm, clang
llvm-svn
Arch Linux PKGBUILD for LLVM, Clang et al. (latest SVN code)
Stars: ✭ 18 (-82%)
Mutual labels: llvm, clang
Cxxctp
DEPRECATED. USE INSTEAD github.com/blockspacer/flextool
Stars: ✭ 58 (-42%)
Mutual labels: llvm, clang
tre
A LLVM backed Go compiler.
tre
is built in Go and can compile a subset of Go code to LLVM IR. Clang is
used to compile the IR to an executable.
Building
# Build tre and run a test program
go build -i github.com/zegl/tre/cmd/tre && ./tre tests/tests/fib.tre && ./output-binary
Example
Example program that calculates the fibonacci sequence.
func fib(num int) int {
if num < 2 {
return num
}
return fib(num-2) + fib(num-1)
}
func main() {
printf("%d\n", fib(34))
}
More examples of what's possible can be found in the compiler testdata.
Features
Types
Language features
- [ ] first class func
- [ ] packages
- [x] methods
- [x] pointers
- [x] interfaces
- [ ] chan
- [ ] goroutines
- [x] if/else if/else
- [ ] switch
Dependencies
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].