如何在C#中使用ANTLR从AST中找到执行路径 [英] How do I find execution paths from AST using ANTLR in C#

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

问题描述

您好每个PLZ帮助我实际上我使用此代码 Visual AST对于ANTLR生成的分析器输出 [ ^ ]

生成任何代码的AST,而不是我在其上应用切片现在我必须找到它的执行路径而不是正常的执行路径

我必须添加一个测试用例,它将找到执行路径,这将改变那些将导致执行路径的节点的颜色

plz帮助我从这个



我尝试过的事情:



我尝试了很多东西,比如enterning string path = Path.GetDirectoryName(

// Assembly.GetAssembly(typeof(Sampler))。CodeBase);

AND

// string appPath = Path.GetDirectoryName(Applicati on.ExecutablePath);

Hello every plz help me actually I am using this code Visual AST for ANTLR Generated Parser Output[^]
to generate the AST for any code than I applied slicing on it now I have to find the execution paths from it not the normal execution paths
I have to add a test case that will find the execution path and that will change the color of those nodes that will lead to an execution paths
plz help me out from this

What I have tried:

I have tried many things such as enterning string path = Path.GetDirectoryName(
// Assembly.GetAssembly(typeof(Sampler)).CodeBase);
AND
//string appPath = Path.GetDirectoryName(Application.ExecutablePath);

推荐答案

请在文章末尾的论坛中发帖提问。
Please post your question in the forum at the end of the article.


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

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