Open ronaldtse opened 3 years ago
Screenshot for 9.5.2.
Reported at: http://bz.pdes-ch.org/show_bug.cgi?id=8482
From Robert Swindells: http://bz.pdes-ch.org/show_bug.cgi?id=8482#c1
emptyProcedure;
The error is thrown by the call to the procedure, not the declaration of it.
My response:
Thanks Robert! In this case, what should the correct "procedure call" format be?
According to ISO 10303-11, 13.8, the syntax given is:
270 procedure_call_stmt = ( built_in_procedure | procedure_ref )
[ actual_parameter_list ] ’;’ .
167 actual_parameter_list = ’(’ parameter { ’,’ parameter } ’)’ .
264 parameter = expression .
"actual_parameter_list" is optional.
In 13.8 the example given is:
INSERT (point_list, this_point, here );
Yes, a declaration without params is valid, a call without params throws.
Functions and procedures without parameters
Declaration:
Call:
eengine throws
Error: ASSIGNMENT_STMT expected ':COLON-EQUAL', got '#\;'
It seems that the spec doesn't explicitly disallow them, or at least I couldn't find where.
ISO 10303-11, 9.5.3 says:
BNF syntax has parameters in
[
]
, which means optionalAre they valid or not?
Originally posted by @zakjan in https://github.com/lutaml/expressir/issues/11#issuecomment-729624529