编译器VS解释器VS Transpiler [英] Compiler Vs Interpreter Vs Transpiler

查看:1521
本文介绍了编译器VS解释器VS Transpiler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我参加的reactJs会话期间,演示者使用了一个术语transpiler来进行一些代码转换/移植。在计算机系统/机器上将语言代码转换为可运行形式时,我总是使用并听到术语编译器和解释器。 Transpiler对我来说是全新的。有人可以帮助我理解一个Transpiler与编译器或解释器是什么不同的,为什么它真的需要?

During a reactJs session that I was attending, the presenter used a term transpiler for some code conversion/porting happening. I've always used and heard the terms compiler and interpreter when it comes to converting a language code to a runnable form on a computer system/machine. Transpiler is completely new to me. Can someone help me to understand how a Transpiler is different from a compiler or an interpreter and why it is really needed?

推荐答案

在此 Wiki文章中提及,它是一种编译器,将源代码从一种编程语言翻译成另一种编程语言。源代码可能在某些语言不再使用,或不支持最新的硬件/软件进步,或根据程序员的方便/偏好。

As is mentioned in this Wiki article, it is a type of compiler which translates source code from one programming language to another programming language. The source code might be in some language no longer used, or doesn't support latest hardware/software advancements, or as per programmer's convenience/favoritism.

一个VB6到VB .NET转换器可以被认为是一个Transpiler。我可能会想到 COBOL到C#/ C ++ / Java 工具作为转换器。

A VB6 to VB.NET converter can be thought of as a Transpiler. I might think of COBOL to C# / C++ / Java tool as a transpiler.

这篇关于编译器VS解释器VS Transpiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆