softlang / metalib

A Chrestomathy of DSL implementations
https://softlang.github.io/metalib
9 stars 1 forks source link

Foldabel #2

Closed rlaemmel closed 7 years ago

rlaemmel commented 7 years ago

Should be Foldable in https://github.com/softlang/metalib/blob/master/rascal/fsml/src/main/rascal/org/softlang/fsml/ConcreteSyntax.rsc

start syntax Fsm = @Foldabel fsm: State* states;
sschauss commented 7 years ago

I will remove the Annotation. There's nothing the states could be folded into.

We would need something like this:

start syntax Fsm = @Foldable fsm: Name name "{" State* states "}";