SFRP

Pure Functional Language for microcontrollers.

Build Status Coverage Status

Install SFRP

$ git clone https://github.com/sfrp/sfrp.git ~/sfrp
$ cd ~/sfrp
$ rake install

For updating, git pull && rake install.

Usage Example

Write following simple accumulator program.

-- Main.sfrp
import Base
import Base.STDIO as IO

in @x from IO.$getInt()
out IO.$putInt(@y)

@y init 0 = @x + @@y

Compile and Run the program.

$ sfrp Main --build=cc
$ ./Main