-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
Description
%agent: timer(s{tik, tok}) %init: 1 timer()
%token: io %init: 0 io %obs: 'io_o' |io|
%token: oi %init: 0 oi %obs: 'oi_o' |oi|
timer(s{tik/tok}) | 1 io @ 10
timer(s{tok/tik}) | 1 oi @ 10
%mod: [T] > 5 do io <- 0 ;
%mod: [T] > 10 do $STOP;
The UI static analyzer reports 1/1[model.ka] Incorrect beginning of sentence , with a red squiggly under the io in the first mod.
Ignoring this message and hitting play produces the expected model behavior.
This syntax was referred by #607
The verbose version of the syntax is tested in https://github.com/Kappa-Dev/KappaTools/blob/master/tests/integration/compiler/tokens/tokens.ka