Typestates to Automata and back:一个工具
Typestates to Automata and back: a tool
摘要:
软件开发是一个迭代过程。用图形工具来表示相关实体和过程可能会有所帮助。特别是,自动机很好地捕捉了应用程序的预期执行流程,因此落后于许多正式的方法,即行为类型。面向类型状态的编程允许我们对应用程序的预期协议进行建模和验证,不仅提供了一种自顶向下的软件开发方法,而且还可以很好地处理组合开发。此外,它提供了重要的静态保证,如协议保真度和某些形式的进展。Mungo是Java的一个前端工具,它将描述方法调用有效顺序的类型状态与每个类相关联,并静态检查所有类的代码是否遵循指定的方法调用顺序。为了帮助Mungo编程,因为类型状态是文本描述,是一个精心设计的语法术语,我们开发了一个工具,双向转换类型状态到一个适当的自动机形式,在一个方向上提供了一个可视化的底层协议指定的类型状态,并在相反的方向上的一种方法,以获得一个语法正确的类型状态从更直观的自动机表示。
英文摘要:
Development of software is an iterative process. Graphical tools to represent the relevant entities and processes can be helpful. In particular, automata capture well the intended execution flow of applications, and are thus behind many formal approaches, namely behavioral types. Typestate-oriented programming allow us to model and validate the intended protocol of applications, not only providing a top-down approach to the development of software, but also coping well with compositional development. Moreover, it provides important static guarantees like protocol fidelity and some forms of progress. Mungo is a front-end tool for Java that associates a typestate describing the valid orders of method calls to each class, and statically checks that the code of all classes follows the prescribed order of method calls. To assist programming with Mungo, as typestates are textual descriptions that are terms of an elaborate grammar, we developed a tool that bidirectionally converts typestates into an adequate form of automata, providing on one direction a visualization of the underlying protocol specified by the typestate, and on the reverse direction a way to get a syntactically correct typestate from the more intuitive automata representation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。