Skip to content

False error from KaSa: mod, tokens, <- #661

@hmedina

Description

@hmedina
%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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions