s-expressions / pose

Portable S-expressions (POSE) spec and libs
29 stars 3 forks source link

delimitation rule #20

Open SaitoAtsushi opened 1 year ago

SaitoAtsushi commented 1 year ago

Atmosphere between expressions is optional on the current specification of Pose.

expressions  = (atmosphere* expression)* atmosphere*

According to this rule, (1a) can be interpreted same as (1 a). (01) is (0 1). Is this by design intent or should it be invalid error?

lassik commented 1 year ago

It's another mistake. It should be something like:

expressions = atmosphere* expression? (atmosphere+ expressions)?

The current grammar is totally ad hoc. It's my fault. We should use some consistent variant of BNF.