You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
10
9
11
-
Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/).
10
+
## Goal
11
+
1. Compatible with all JavaScript syntax, and extend the syntax based on JS;
12
+
2. Statically analyze the code to find the code that is likely to have BUG;
13
+
3. Generate pure JavaScript code without any optimization or processing of the code, **even errors in the source code are retained in the generated code**;
14
+
3.**Does not affect the runtime environment of the generated code**.
12
15
13
-
## Installing
14
16
15
-
For the latest stable version:
16
-
17
-
```bash
18
-
npm install -g typescript
17
+
## Project structure
18
+
```
19
+
├── bin # the final tsc and tsserver commands for users
20
+
├── doc # language specification document
21
+
├── lib # system standard library and localization of prompt information, LKG
22
+
├── loc
23
+
│ └── lcl # error message localization
24
+
├── scripts # tool scripts when developing projects
25
+
├── src # source code
26
+
│ ├── compiler # compiler source code
27
+
│ │ ├── transformers # transformers with different target syntax
28
+
│ │ ├── scanner.ts # grammar analysis: scan a single file, lexical analysis
29
+
│ │ ├── parser.ts # grammar analysis: get tokens to generate AST tree, syntax analysis
0 commit comments