Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what language is the initial compiler of typescript written in?

According to another thread on the same topic, typescript is a 'bootstrapped' language.

If typescript is a Bootstrapped language, it means that the initial compiler was written in an initial lower level language. Then what language would that have been?

from wikipedia:

The TypeScript compiler is itself written in TypeScript, transcompiled to JavaScript and licensed under the Apache 2 License.

like image 706
Jarg7 Avatar asked Sep 20 '16 18:09

Jarg7


People also ask

What language is TypeScript compiler?

TypeScript is JavaScript with syntax for types. TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

Is TypeScript based on C#?

Typescript isn't a direct upgrade from C#, though — it's still fundamentally javascript at the core (one way of 'compiling' a typescript file is to just strip out all the typescript-specific annotations and ship what's left) so there are always going to be some points where the types don't line up quite right, or ...

What language is .ts file?

A TS file is a text file that contains TypeScript code, an open source programming language developed by Microsoft. TypeScript is a superset of ECMAScript 2015, which is a superset of JavaScript. It is used for developing medium- to large-scale JavaScript applications for server-side or client-side execution.

Why is TypeScript compiled to JavaScript?

TypeScript is a superset of JavaScript. It means that TypeScript provides all the features and functionalities of JavaScript with some added features. TypeScript compiles to JavaScript, which the browser understands. TypeScript provides “type safety” (hence the name!) to JavaScript.


1 Answers

The earliest implementation of TypeScript started off in JavaScript.

like image 171
Ryan Cavanaugh Avatar answered Oct 26 '22 00:10

Ryan Cavanaugh