除 Paint 之外的用于创建解析树 automagic 的软件

发布于 2024-09-19 04:13:44 字数 76 浏览 1 评论 0原文

我有一个 BNF 语法,以及一些我需要根据该语法进行解析的表达式。是否存在一些软件可以让我使用( )来输入树来表示树,然后由软件绘制它们?

I have a BNF grammar, and quite a few expressions that I am suppose to parse in regard to the grammar. Does it exists some software that I can enter the trees using ( ) to express the tree and than the software draws them?

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

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

发布评论

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

评论(1

木緿 2024-09-26 04:13:44

它不会直接绘制树木,但 Dot 非常接近。它确实需要一个图表,而不是嵌套结构。

您可以轻松到达那里:
您可以相对轻松地将树分解为一组具有唯一名称的节点,并使用这些唯一引用来实现子引用。现在您的树只是一组具有命名引用的节点。那时,塑造你的节点集应该很容易,所以 Dot 会为你绘制它们。请阅读网站上的“dotguide”了解更多详细信息。

It wont draw your trees directly, but Dot comes pretty close. It really wants a graph, not a nested structure.

You can get there easily:
You can relatively easily explode your tree into a set of nodes with unique names, with child references being implemented using those unique references. Now your tree is just a set of nodes with named references. At that point it should be pretty easy to shape your node set so Dot will draw them for you. Read the "dotguide" at the site for more details.

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