如何使用ANTLR从AST中找到xpath [英] How do I find xpath from AST using ANTLR

查看:158
本文介绍了如何使用ANTLR从AST中找到xpath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好每个人实际上我正在为我的项目使用Visual AST for ANTLR Generated Parser输出并且已经添加了切片模式现在我必须从中找到xpath我使用了很多语法但是失败了请帮我解决这个问题



我尝试过的事情:



Visual Studio 2012和ANTLR文件

hello everyone actually I am using Visual AST for ANTLR Generated Parser output for my project and have and have added slicing pattern in it now I have to find xpath from it I have used many grammers but failed plz help me out from this thanks

What I have tried:

Visual studio 2012 and ANTLR files

推荐答案

您没有解释您是自己编写语法还是从某个地方获取语法。

也许你已经看过这里了。



GitHub - antlr / grammars-v4 :为ANTLR v4编写的语法;期望语法没有行动。 [ ^ ]

你可以在语法列表中找到 xpath



你不要解释你得到了什么样的问题,或者究竟是什么让你陷入困境,因此是一般的答案。
You don't explain if you have written the grammar yourself or got them from somewhere.
Maybe you have looked here already.

GitHub - antlr/grammars-v4: Grammars written for ANTLR v4; expectation that the grammars are free of actions.[^]
You can find xpath in the list of grammars.

You don't explain what kind of problem you get or exactly what gets you stuck, hence the generic answer.


这篇关于如何使用ANTLR从AST中找到xpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆