clir

Clir to C compiler


Keywords
cirru, c
License
MIT
Install
npm install clir@0.0.1

Documentation

Clir is a Cirru to C compiler for fun

C is designed with curly brackets, and I want to write in Cirru syntax.

Status: prototyping...

Usage

npm i --save clir
clir = require 'clir'

source = """
stdio.h #include

main :: (int int) int
main \ (a b)
  (a + b) return
"""

clir.transform(source)

returns:

#include <stdio.h>

int main(int a, int b) {
  return a + b;
}

Develop

Use Webpack for debugging:

npm i
webpack-dev-server --hot
# debugger.html

License

MIT