{α → β


The repo for this project builds both native and wasm versions of the code. GitHub CI/CD plops the latest build of it here. As such, it may be broken from time to time. Give it a try below

Example progam
# define two-element sort 
# algorithm over a length-2
# abstract alphabet. 
sort::[2]{
    # name : rule : emission
    # -> for pure and ~> for impure
    # -. and ~. for terminal
    
    swap : ba ~> ab : "~p[~m]~s";
    done : ab ~. : "[~]"
}

# define a concrete alphabet
squares = {□, ■}

# define bindings between the 
# abstract and concrete alphabets 
bind1 = sort :> squares

# custom bind rules 
bind2 = sort :[a:■, b:□]> squares

# Call sort on stdin 
# with each binding
sort::bind1(~)
sort::bind2(~)
    

Input

    
    
    
    



Output

    
WASM S-Statements