arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.11101cs.SEcs.HCcs.PL
收藏

Chat2Code:面向模型规范和代码生成的对话式具体语法,以智能合约为例

Chat2Code: Towards conversational concrete syntax for model specification and code generation, the case of smart contracts

Ilham Qasse, Shailesh Mishra, Mohammad Hamdaqa

摘要:

基于模型驱动工程(MDE)框架的自动代码生成工具的革命性潜力尚未实现。除了能够帮助软件专业人员编写更准确、可重用的代码之外,它们还可以使编程对一个全新的非技术用户群体更容易访问。然而,非技术用户接受这些工具的速度很慢。这可能是因为它们的具体语法通常是在文本或图形界面的操作之后模式化的。这些接口是通用的,但用户需要比想象中更广泛、更精确和更详细的知识,才能将其作为具体的语法使用。对话界面(聊天机器人)为非技术用户提供了一种更容易访问的方式来生成代码。在本文中,我们讨论了在模型驱动工程(MDE)框架中集成会话代理的基本挑战,然后转向一个特定的应用:由非技术用户基于会话语法自动生成多种语言的智能合约代码。我们演示了如何做到这一点,并通过进行用户体验调查来评估我们的方法,以评估聊天机器人框架的可用性和功能。

英文摘要:

The revolutionary potential of automatic code generation tools based on Model-Driven Engineering (MDE) frameworks has yet to be realized. Beyond their ability to help software professionals write more accurate, reusable code, they could make programming accessible for a whole new class of non-technical users. However, non-technical users have been slow to embrace these tools. This may be because their concrete syntax is often patterned after the operations of textual or graphical interfaces. The interfaces are common, but users would need more extensive, precise and detailed knowledge of them than they can be assumed to have, to use them as concrete syntax. Conversational interfaces (chatbots) offer a much more accessible way for non-technical users to generate code. In this paper, we discuss the basic challenge of integrating conversational agents within Model-Driven Engineering (MDE) frameworks, then turn to look at a specific application: the auto-generation of smart contract code in multiple languages by non-technical users, based on conversational syntax. We demonstrate how this can be done, and evaluate our approach by conducting user experience survey to assess the usability and functionality of the chatbot framework.

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

↑