arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05073cs.NIcs.CL
收藏

QRscript:将编程语言嵌入二维码以支持决策与管理

QRscript: Embedding a Programming Language in QR codes to support Decision and Management

National Research Council of Italy(意大利国家研究委员会)

Stefano Scanzio, Gianluca Cena, Adriano Valenzano

AI总结:

本文提出QRscript,一种可嵌入二维码的编程语言及其编译与虚拟机执行流程,并设计面向决策树编码的紧凑子语言,以支持无网络环境下的智能设备决策与管理。

摘要:

将编程语言嵌入二维码是一项全新且极具前景的机遇,因为它使设备和对象更加智能,而无需依赖互联网连接。本文详细阐述了将高级编程语言编写的程序转换为编码在二维码中的二进制表示所需的全部步骤,以及从二维码出发、通过虚拟机执行该程序的相反过程。所提出的编程语言被命名为QRscript,并且可以轻松扩展以集成新功能。主要设计目标之一是生成非常紧凑的目标二进制代码。特别地,在这项工作中,我们提出了一种特定的子语言(一种方言),旨在编码决策树。除了工业场景外,这在许多其他应用领域也很有用。文中给出的示例涉及工业联网设备的配置,突出了所提技术的潜力,并有助于更好地理解所有转换步骤。

英文摘要:

Embedding a programming language in a QR code is a new and extremely promising opportunity, as it makes devices and objects smarter without necessarily requiring an Internet connection. In this paper, all the steps needed to translate a program written in a high-level programming language to its binary representation encoded in a QR code, and the opposite process that, starting from the QR code, executes it by means of a virtual machine, have been carefully detailed. The proposed programming language was named QRscript, and can be easily extended so as to integrate new features. One of the main design goals was to produce a very compact target binary code. In particular, in this work we propose a specific sub-language (a dialect) that is aimed at encoding decision trees. Besides industrial scenarios, this is useful in many other application fields. The reported example, related to the configuration of an industrial networked device, highlights the potential of the proposed technology, and permits to better understand all the translation steps.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑