EoinDavey / tsPEG

PEG Parser Generator for TypeScript
Mozilla Public License 2.0
195 stars 7 forks source link

BUG: tsPEG computed properties require no white-space in type specifications #4

Closed EoinDavey closed 4 years ago

EoinDavey commented 4 years ago

Currently, tsPEG computed properties require no white-space in the type specification.

The grammar should be adjusted to allow for any valid type specification

EoinDavey commented 4 years ago

Type Grammar spec can be found here: https://github.com/microsoft/TypeScript/blob/master/doc/spec-ARCHIVED.md#A.1

EoinDavey commented 4 years ago

Also can be improved by including type in arrow function definition in constructor