speedKeyInput = times(10)
+ val c:Any=(pass_up1(here)+'0') key(chr(c)) setSpeed(char2Value(c))
This should become nicer, e.g.,
speedKeyInput = times(10)
+ val c=chr(pass_up1(here)+'0') c setSpeed(char2Value(c))
One problem is that the first "(" is seen as part of a script expression, rather than belonging to chr. Spacing should be significant here.
Another problem is that the inferred type of c should be available in the generated script. Currently that generation is done in the parser phase, whereas it should be done in the typing phase.
LifeFrame contains:
This should become nicer, e.g.,