All Projects → tigertv → compiler

tigertv / compiler

Licence: other
My first attempt to create a compiler

Programming Languages

C++
36643 projects - #6 most used programming language
Lex
420 projects
Makefile
30231 projects
CMake
9771 projects

Projects that are alternatives of or similar to compiler

CSpydr
A static typed low-level compiled programming language inspired by Rust and C
Stars: ✭ 17 (+6.25%)
Mutual labels:  compilation, compiler-construction
CompilersCourse
Theory of compilation course, MIPT
Stars: ✭ 32 (+100%)
Mutual labels:  compilers, compiler-construction
tiny-lang
tiny-lang — A different programming language. Supports a bunch of spoken languages.
Stars: ✭ 26 (+62.5%)
Mutual labels:  compilers, compiler-construction
awesome-internals
A curated list of awesome resources and learning materials in the field of X internals
Stars: ✭ 78 (+387.5%)
Mutual labels:  compilers, compiler-construction
cppcombinator
parser combinator and AST generator in c++17
Stars: ✭ 20 (+25%)
Mutual labels:  compilers, compiler-construction
Decaf-Compiler
Compiler for Decaf Programming Language
Stars: ✭ 36 (+125%)
Mutual labels:  compilers, compiler-construction
AwesomeCompiler
The Big list of the github, open-source compilers.
Stars: ✭ 27 (+68.75%)
Mutual labels:  compilers
Metatheory.jl
General purpose algebraic metaprogramming and symbolic computation library for the Julia programming language: E-Graphs & equality saturation, term rewriting and more.
Stars: ✭ 266 (+1562.5%)
Mutual labels:  compiler-construction
koika
A core language for rule-based hardware design 🦑
Stars: ✭ 103 (+543.75%)
Mutual labels:  compilation
jet
A Fast C and Python like Programming Language that puts the Developer first. WIP
Stars: ✭ 41 (+156.25%)
Mutual labels:  compilers
compilers-lectures
Lectures for the class on [email protected]
Stars: ✭ 67 (+318.75%)
Mutual labels:  compilers
compiler-benchmark
Benchmarks compilation speeds of different combinations of languages and compilers.
Stars: ✭ 93 (+481.25%)
Mutual labels:  compilation
build-anywhere
Scripts for building compilers that run anywhere, which build things that run anywhere
Stars: ✭ 72 (+350%)
Mutual labels:  compilers
types-and-programming-languages
C++ Implementations of programming languages and type systems studied in "Types and Programming Languages" by Benjamin C. Pierce..
Stars: ✭ 32 (+100%)
Mutual labels:  compilers
c-compiler
A compiler that accepts any valid program written in C. It is made using Lex and Yacc. Returns a symbol table, parse tree, annotated syntax tree and intermediate code.
Stars: ✭ 37 (+131.25%)
Mutual labels:  compiler-construction
UniversalQCompiler
Synthesizing arbitrary quantum computations
Stars: ✭ 53 (+231.25%)
Mutual labels:  compilers
save
Universal test framework for cli tools [mainly for code analyzers and compilers]
Stars: ✭ 33 (+106.25%)
Mutual labels:  compilers
LL-Script
Simple script
Stars: ✭ 38 (+137.5%)
Mutual labels:  compilers
jscc
Tiny and powerful preprocessor for conditional comments and replacement of compile-time variables in text files
Stars: ✭ 44 (+175%)
Mutual labels:  compilation
pyCompiler
Python Compiler
Stars: ✭ 13 (-18.75%)
Mutual labels:  compilers

Compiler

Released:

  • variables, simple scope
  • functions, print function
  • calculation: addition, subtruction, multiplication, division
  • if-else (simple, ==, !=, <, !<, >, !>)
  • loop(only calculated expression without variables)
  • only integers as operands and arguments for functions

It uses ld and nasm as backend.

Build the compiler:

make

Build and run tests:

make test

Examples of code in *.calc files of tests directory

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].