Coder Social home page Coder Social logo

elm-sml's People

Contributors

calleolsen avatar carl2 avatar

Watchers

 avatar

elm-sml's Issues

Syntax highlight

For some reason Elm and Prism is not playing nice with each other .

Other option might be
Highlight

Haven't spent much time looking into it .. But it would be nice to have

X state should not be defined

X should never be defined

At the moment , this is created.
constexpr static auto X = sml::state<class X>;
Though X is defined inside sml as a end state, so it needs to be recognised.

5 rows...

Should be possible to extend this, or even reduce

Create Events struct

Events could be added to another code section.

Events also needs to be unique

An small main program

It would be nice to have something that created a small main.

Just to make it clear how to construct a Machine object.

Generate constexpr sml class-

For example each state could be made constexpr, this example shows Init .

struct StateMachine {
constexpr static auto Init          = sml::state<class Init>;
.
.
.
auto operator()() const {
.....}
};

Use a different backend

These are available

  • jump_table :: Jump table
  • switch_stm :: switch statement
  • branch_stm :: if/else statements
  • fold expressions :: fold_expr

OnEntry, onExit

Set on entry to a state and on exit.
Not sure how this would be added...

State2 + sml::on_exit<_> / on_s2_exit

What would be the best way to add support for this?
It could be that if the name of the event is on_exit then this would it changes it to sml::on_exit<_> or something
Then guard and end state should be grayed out.

Create plantuml string

Use model and create a plantuml string .

This string can later be send to the server side for an image.

Set Name

It should be possible to set the name of the statemachine
For the timebeing its:

struct StateMachine
{

But StateMachine should be changable..

Table heading

Need to add headers to the table

  1. Start State
  2. End State
  3. Event
  4. Guard
  5. action

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.