Skip to content

Repository files navigation

rhododendron

Just a C-like compiler for fun (Rewritten in Rust in one night :P)

Build

Building

To build this project, first install Cargo, the Rust package manager, then clone this repo and cargo run in the project directory.

Please read the user manual before trying to write code, while the rhododendron language is based in c, it has seveal key differences.

Todo:

  • Variables
  • Conditionals
  • Pointers / Arrays
  • Functions *
  • Structs
  • AST and code gen optimizations
  • Linker

Known Issues

4: Unusable

3: Major inconvinience

2: Minor inconvinience

1: "Feature"

Returning from functions within if statements

Symptom: Results in segmentation fault.

Suspected Cause: Returning from a stack frame to another stack frame that isn't its parent causes a misalignment in the stack.

Potential Fix: Make if statements return in a different way or make them a different kind of frame

Level 3

This is a huge limitation that will be addressed ASAP.

About

Floral C Compiler (not for production)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages