/emfrp

A compiler of Emfrp, an FRP language for small embedded systems.

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Emfrp

Pure Functional Reactive Programming Language for Small-Scale Embedded Systems

Installation

Requirement

  • Ruby 2.0 or later (and it's Gem client)
  • C (or C++) compiler for your favorite target platform

via RubyGems

Just type the following command.

$ gem install emfrp

You are all set. Enjoy!

from Source

Install Bundler if it is not installed.

$ gem install bundler

Clone this repository and install from the cloned source as follows.

$ cd emfrp
$ rake install

NOTE Some environments require that you need to be an administrator to perform gem install or rake install.

Usage

Command-line-interpreter (REPL)

$ emfrpi

Compiler

$ emfrp [options] <src-file>

Options

  • --nomain
    does not generate main file
  • --cpp
    generates .cpp instead of .c

See the wiki of this repository for details.

Sample Code

History

Originally developed by Kensuke Sawada