gpt4 book ai didi

java - Java 中上下文无关语法的语法编辑器实用程序

转载 作者:搜寻专家 更新时间:2023-10-31 19:31:24 25 4
gpt4 key购买 nike

是否有适用于用 Java 开发的上下文无关语法的语法编辑器实用程序?

最佳答案

我知道的是 XText .
可能有点矫枉过正:

Xtext is a framework for development of programming languages and domain specific languages (DSLs). Just describe your very own DSL using Xtext's simple EBNF grammar language and the generator will create a parser, an AST-meta model (implemented in EMF) as well as a full-featured Eclipse text editor from that.

DSL 编辑器如下所示:

alt text http://www.eclipse.org/Xtext/documentation/latest/images/getting-started-grammar.png

允许您使用刚刚定义的语言:

alt text http://www.eclipse.org/Xtext/documentation/latest/images/getting-started-editor.png

关于java - Java 中上下文无关语法的语法编辑器实用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2941929/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com