Experimental dsl for xstate using langium.
cd xstate-dsl-proto
npm install
npm run langium:generate
npm run build
Run the extension via VS Code launch configuration: Hit f5
in VS Code.
An example xstate machine could look like the following:
service Service1
cond Cond1
action Action1
initial State01
state State01
state State02 {
state State02_1
entry {
case Cond1 apply Action1
case default apply Action1
}
exit {
case Cond1 apply Action1
}
on TEST {
case Cond1 -> State01
case default -> State01
}
}