On 5/31/15, 6:02 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:

>On May 31, 2015 9:41 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
>wrote:
>>
>> Now, I wish I had an answer of how to create a d.ts parser without using
>> 100's of dev time hours. :)

Mike, have you checked out Microsoft’s TypeScript compiler?  It seems to
be on GitHub at [1].
I’d guess that [2] is their parser/scanner.  It looks like the scanning is
done in TS itself which is probably why you couldn’t find a grammar.

-Alex

[1] https://github.com/Microsoft/TypeScript
[2] 
https://github.com/Microsoft/TypeScript/blob/270a149571b106dcfbbaee53897074
61e8fedcb9/src/compiler/scanner.ts

Reply via email to