Skip to content

talyian/coral-ocaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coral-Ocaml

Build Status

A Coral compiler.

Example Code

Check the test_cases directory for more examples

func fizzbuzz(n):
  if n % 15 = 0: printf "fizzbuzz\n"
  else if n % 3 = 0: printf "fizz "
  else if n % 5 = 0: printf "buzz "
  else: printf("%ld ", n)

Project Status

Still in early development.

The roadmap includes union types, pointers, importing, anonymous tuples.

Building

Building this project requires Ocaml 4.06 and a number of OPAM modules. See the included Dockerfile for a reproducible build environment