A work in progress C compiler from scratch

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ocean

    Programming language that compiles into a x86 ELF executable.

  • Can't edit my original reply anymore, but fair point, I've changed the keyword 'function' in the AST to a function return type instead. There's no error handling done yet to check whether the variable receiving the function return data matches the function return type, but it's on my todo list.

    https://github.com/riicchhaarrd/ocean/commit/0618e0810c8d437...

    Then again in C it would work aswell if you type casted the types.

      const char *f()

  • flex

    The Fast Lexical Analyzer - scanner generator for lexing in C and C++ (by westes)

  • I wrote a C compiler using flex [1] and bison [2]. The glue between them is a bit hacky.

    At some point ANTLR [3] looked promising, but these days I'd probably write a lexer and recursive descent parser by hand, then generate LLVM IR.

    [1] https://github.com/westes/flex

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • llvm-project

    The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

  • imp

    Imp is a statically typed and compiled scripting language with the goal of increasing programmer confidence.

  • I've had good luck with ANTLR4 and ObjWeb ASM for my JVM language Imp https://github.com/mh15/imp

  • Cwerg

    The best C-like language that can be implemented in 10kLOC.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts