azl397985856 / fe-interview

宇宙最强的前端面试指南 (https://lucifer.ren/fe-interview)
Apache License 2.0
2.83k stars 260 forks source link

【每日一题】- 2020-07-01 - TypeScript 编译器是用 TypeScript 写的,那是先有编译器还是TS? #135

Closed azl397985856 closed 4 years ago

azl397985856 commented 4 years ago

TypeScript 编译器是用 TypeScript 写的,比如:

https://github.com/microsoft/TypeScript/blob/7b942b4fa875f2877a90d201cf146e6196b0c07b/src/compiler/scanner.ts

那么这个TS写的编译器是怎么被解析的呢?

azl397985856 commented 4 years ago

先有 TypeScript。 TS 编译器的发展大致如下:

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.