transpiler def
This commit is contained in:
parent
7b76185892
commit
f723253f78
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ Here, in this chapter, our purpose is to get the gist of how they work, and thei
|
||||||
|
|
||||||
## Transpilers
|
## Transpilers
|
||||||
|
|
||||||
A [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler) is a special piece of software that can parse ("read and understand") modern code, and rewrite it using older syntax constructs, so that the result would be the same.
|
A [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler) is a special piece of software that can parse ("read and understand") modern code, and rewrite it using syntax constructs that the target engine (even oudated ones) can run.
|
||||||
|
|
||||||
E.g. JavaScript before year 2020 didn't have the "nullish coalescing operator" `??`. So, if a visitor uses an outdated browser, it may fail to understand the code like `height = height ?? 100`.
|
E.g. JavaScript before year 2020 didn't have the "nullish coalescing operator" `??`. So, if a visitor uses an outdated browser, it may fail to understand the code like `height = height ?? 100`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue