s-expressions / pose

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

Decimal number cannot start with zero #19

Closed SaitoAtsushi closed 1 year ago

SaitoAtsushi commented 1 year ago

The current specification does not allow the example.

0.123
number       = '0' | decimal
decimal      = minus? onenine digit* fraction? exponent?

Which is wrong, the spec or the example?

lassik commented 1 year ago

The spec is wrong. Thank you for catching the mistake.

lassik commented 1 year ago

POSE is supposed to have the same number syntax as JSON, IIRC: