Parser hangs
Parser hangs rather non-deterministically How to reproduce:
The following has two syntax error. Missing "||" just before "RADIO_ABS" (i.e., "||RADIO_ABS"), and "." at the end of that same line (i.e. "{freq[88.108]}" --> "{freq[88.108]}.").
Paste the text into edit pane, parse using button, try a number of edits reparsing everytime:
- add "||"
- remove "||"
- add "."
- remove "."
RADIO = (on -> RADIO[108] | reset -> RADIO[108]), RADIO[f:88..108] = (reset -> RADIO[108] | when (f > 88) scan -> SCAN[f] | off -> RADIO),
// Al escanear por una sintonización la radio va bajando de frecuencia dejando a la misma como output
SCAN[i:88..108] = (lock -> RADIO[i] | when (i == 88) end -> RADIO[88] | off -> RADIO | when (i > 88) freq[i-1] -> SCAN[i-1] | reset -> RADIO[108]).
RADIO_ABS = (RADIO){freq[88.108]}