Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by tlrobinson on Wednesday May 16, 2018 @07:38PM
(#17087336)
It's a type of compiler. Just like a truck is a type of vehicle, and a car is another type of vehicle.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by omeid2 on Wednesday May 16, 2018 @08:34PM
(#17087616)
They both have four wheels and transport atoms.
Why do you think it is helpful to be unambiguous between atoms that make up a human or atoms of any goods in the back of a truck? /s
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by monocasa on Wednesday May 16, 2018 @09:17PM
(#17087870)
Except that there's a true formal (in fact legal) distinction between a car and a truck (they have different emissions standards). The whole distinction between a 'transpilers' and other compilers on the other hand is 'what is the user going to do with the output'.
Re:Show HN: A complete Bash parser in JavaScript transpiled ...
by tlrobinson on Wednesday May 16, 2018 @10:18PM
(#17088195)
That's not the disinction I've seen. I like Wikipedia's:
> translates between programming languages that operate at approximately the same level of abstraction
That's fairly straightforward, though a bit subjective (which doesn't preclude a word from having meaning)
What I would do is ask 'what part there is any different than any other compiler?'