使用 XText 创建 DSL 来描述专有 XML 格式

发布于 2024-11-17 19:12:48 字数 257 浏览 9 评论 0原文

目前,我必须使用 XACML。由于似乎没有一个编辑器可以满足我的需求,并且在其中编写文档确实很痛苦,因此我想知道是否无法创建某种 DSL 来使创建文档变得更容易(更不容易出错)。 XText 可以做到这一点吗?我有一种感觉,这是可能的,但很难做到(特别是对于那些不知道 XText 的人;-))。

At the moment, I have to work with XACML. As there doesn't seem to be an editor to fit my needs, and as writing documents in it is a real pain, I wonder if I could not create some sort of DSL to make creating documents easier (are less error-prone). Is this possible with XText? I have a feeling it's possible but quite hard to do (especially for someone who doesn't know XText ;-)).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小猫一只 2024-11-24 19:12:48

摆脱手动编辑的 XML 文件是 Xtext 的典型用例。乏味的部分是语法定义本身。一旦您知道文件应该是什么样子,通常就可以直接使用 Xtext 获得工作原型。您有什么样的担忧?

Getting rid of manually edited XML files is a typical use case for Xtext. The tedious part is the syntax definition itself. As soon as you have an idea how your files should look like, it's usually straight forward to get a working prototype with Xtext. What sort of concerns do you have?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文