Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 838 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 838 Bytes

Gitpod Ready-to-Code

[WIP] xstate-dsl-proto

Experimental dsl for xstate using langium.

Run VS Code extension

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.

Example

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
    }
}