Skip to content

MarianPalkus/xstate-dsl-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Experimental dsl for xstate using langium.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published