在C#中实现自上而下的解析器 [英] Implementing a Top Down Parser in C#

查看:90
本文介绍了在C#中实现自上而下的解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是学生,我想在使用c#语言开发的语言翻译项目中实现自上而下的解析器.例如,如果我需要为我的名字是Husni,我是学生"这句话构造一个解析器树,该如何使用C#语言来实现.

i am Student and i want to implement a top down parser in my language translation project that is developed using c# language. for example if i need to construct a parser tree for the sentence "My Name is Husni and i am a Student" how can i do it in C# language.

推荐答案

在本书之后,您还可以从 ANTLR ,它可以帮助您编写编译器(也在C#中),甚至可以直观地浏览AST.

After the book you can also find interesting to read about a compiler generator as ANTLR that can help you to write the compiler ( also in C# ) and browsing the AST even visually.

这篇关于在C#中实现自上而下的解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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