Glen Whitney
a564b2274d
Some checks failed
continuous-integration/drone/push Build is failing
Also added paranthesization of fostr expressions. Finally managed to cast code generation in terms of bottomup processing of a local strategy. Resolves #1.
10 lines
222 B
Plaintext
10 lines
222 B
Plaintext
module util
|
|
imports libstrategolib
|
|
|
|
rules
|
|
join(|infix) : [] -> ""
|
|
join(|infix) : [x | xs] -> $[[x][<prejoin(|infix)>xs]]
|
|
|
|
prejoin(|infix) : [] -> ""
|
|
prejoin(|infix) : [x | xs] -> $[[infix][x][<prejoin(|infix)>xs]]
|