Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cbosoft/sml
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Boyle committed Aug 5, 2024
2 parents 7d6d385 + 49be6ef commit 7f4c4cc
Show file tree
Hide file tree
Showing 11 changed files with 381 additions and 54 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "shakemyleg"
description = "A simple state machine definition language and interpreter."
repository = "https://github.com/cbosoft/sml"
license = "MIT"
version = "2.2.1"
version = "2.4.0"
edition = "2021"
authors = ["Christopher Boyle"]

Expand All @@ -15,3 +15,6 @@ regex = "1.10.5"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
thiserror = "1.0.62"

[features]
thread_safe = []
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
![tests badge](https://github.com/cbosoft/sml/actions/workflows/tests.yml/badge.svg)
[![Written up - here!](https://img.shields.io/static/v1?label=Written+up&message=here!&color=2ea44f)](https://cmjb.tech/blog/2024/08/02/shakemyleg/)

# SML - ShakeMyLeg, is that a State Machine Language?

A simple state machine definition language and interpreter.
Expand All @@ -10,12 +12,12 @@ A very simple example `shakemyleg` machine:
# flip_flip.sml
state A:
when true:
always:
outputs.bar = inputs.bar + 1
changeto B
state B:
when true:
always:
outputs.bar = inputs.bar + 1
changeto A
```
Expand All @@ -34,11 +36,11 @@ struct Foo {

let src = r#"
state A:
when true:
always:
outputs.bar = inputs.bar + 1
changeto B
state B:
when true:
always:
outputs.bar = inputs.bar + 1
changeto A
"#;
Expand Down
Loading

0 comments on commit 7f4c4cc

Please sign in to comment.