Giter Site home page Giter Site logo

asmc's Introduction

ASMC - Another State Machine Compiler

The ASMC generates code for small efficient event driven state machines primarily for for micro-controllers. The compiler takes a state machine description file and creates a c++ class from it. Although the tutorial and examples are all for Arduino systems, the code generated is generic and can be compile for any system.

Features

  • Flexible Actions

User code can be executed on transition events as well as entry or exit from a state.

  • State Variables

User defined state variables are supported.

Missing

  • No pre-built executable.

The package should compile on any system with a basic GNU Unix style development environment. The tools required to build the compiler are 'make', 'flex', 'bison', and 'gcc'. Additionally you will need to have Arduino installed to build the examples. I don't use Windows or Mac OS, if some brave soul wishes to contribute Windows or Mac support to the project that would be most appreciated.

Installation

System Requirements

Setup

Down load the repository and edit 'config.mk' to set SRCDIR and USR_LIB_PATH. Select the other variables as appropriate for your OS type. You may need to adjust some of the other variables based on your local configuration.

Building

Run make in the top level project directory to build the compiler and all of the example scripts. If you don't wish to build the examples change to the src directory and run make

asmc's People

Contributors

stephenrhen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.