Fix error in EBNF grammar for sample expressions
As discussed in issue #780 there seems to be a bug in the OSC2 grammar, that was also transported over to the checker, on sample expressions:
Currently the EBNF says:
variable-declaration ::= 'var' field-name (',' field-name)* ':' type-declarator ['=' default-value | sample-expression ] NEWLINE
which should be changed to
variable-declaration ::= 'var' field-name (',' field-name)* ':' type-declarator ['=' ( default-value | sample-expression ) ] NEWLINE
So that
import osc.standard
scenario simple_drive:
car: vehicle
environment: environment
var sim_start_time: time = sample(environment.datetime, @root_phase.start)
do root_phase: serial:
car.drive() with:
until (environment.datetime - sim_start_time >= 60s)
becomes valid.
I think. I will open a new issue for this.