Chevrotain / chevrotain

Parser Building Toolkit for JavaScript
https://chevrotain.io
Apache License 2.0
2.44k stars 199 forks source link

ecma parser in TypeScript #2010

Closed sbusch99 closed 6 months ago

sbusch99 commented 6 months ago

Hi,

I ported into TypeScript the ecma5 grammar you have in the examples (I'm using Angular 17). I got everything to build, but I'm failing on a simple let x=5; line. The error is MismatchedTokenException: Expecting token of type --> Semicolon <-- but found --> '' <--.

It's entirely possible that I messed up changing the code (there were a bunch of changes). I'm happy to share what I've done.

I'm hoping you have a "oh yeah, you missed this" insight.

Thanks.

Steve Buschman