0.0.1 • Published 9 years ago

clir v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

0.0.1

9 years ago