arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.17008cs.PLcs.AIcs.CL
收藏

IsalProgram 编程语言

The IsalProgram Programming Language

Department of Computer Languages and Computer Science(计算机语言与计算机科学系);University of Málaga(马拉加大学);ITIS Software(ITIS软件);Universidad de Málaga(马拉加大学)

Ezequiel López-Rubio

AI总结:

本文提出了一种新的类似汇编的编程语言IsalProgram,其核心特性包括:1) 作为形式语言理论中的正则语言,其程序可被有限自动机接受;2) 每个有限的指令字母表上的字符串都是语法有效的程序;3) 不显式使用内存地址或变量名。程序由固定指令集中的有限令牌序列组成,并在虚拟机上执行,其唯一数据结构是通过三个数据指针导航的循环双链表,控制流由两个代码指针控制。本文还讨论了IsalProgram作为神经程序合成目标语言的潜在优势,以及通过Levenshtein编辑距离进行程序空间度量探索的可能性,以及在此框架内分析可计算性和复杂性的方向。

摘要:

我们介绍了一种新的类似汇编的编程语言IsalProgram,它具有三个独特的理论特性:(1) 它在形式语言理论中是正则语言,意味着其程序被有限自动机接受;(2) 每个有限的指令字母表上的字符串都是语法有效的程序;(3) 它不显式使用内存地址或变量名,绝对或相对。程序是由固定指令集中的有限令牌序列组成,并在虚拟机上执行,该虚拟机的唯一数据结构是一个通过三个数据指针导航的循环双链表(CDLL),控制流由两个代码指针控制。我们给出了该语言及其虚拟机的完整形式定义,证明了其正则性,并展示了其表达能力。我们进一步讨论了IsalProgram作为神经程序合成目标语言的潜在优势,其程序空间通过Levenshtein编辑距离进行度量探索的可能性,以及在此框架内分析可计算性和复杂性的方向。

英文摘要:

We introduce IsalProgram (Instruction Set and Language for Programming), a novel assembly-like programming language with three distinctive theoretical properties: (1) it is a regular language in the sense of formal language theory, meaning its programs are accepted by a finite automaton; (2) every finite string over the instruction alphabet is a syntactically valid program; and (3) it makes no explicit use of memory addresses or variable names, absolute or relative. Programs are finite sequences of tokens drawn from a fixed instruction set, and are executed on a virtual machine whose sole data structure is a circular doubly linked list (CDLL) navigated by three data pointers, with control flow governed by two code pointers. We give a complete formal definition of the language and its virtual machine, prove its regularity, and demonstrate its expressive power. We further discuss IsalProgram's potential advantages as a target language for neural program synthesis, the amenability of its program space to metric-based exploration via the Levenshtein edit distance, and directions for analyzing computability and complexity within this framework.

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

↑