编译器编译器在C# [英] Compiler compiler in C#
本文介绍了编译器编译器在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在寻找一个可自定义的解析器和/或词法分析器,可以让我在C#中构建一个自定义语法检查器。基本上,用户将输入代码一行代码(自定义),并且语法检查器将能够响应,如果它是否正确写入。
I'm looking for a customizable parser and/or lexer that can allow me to build a custom syntax checker in C#. Essentially the user will enter code a line of code (custom), and the syntax checker will be able respond if it is written correctly or not.
推荐答案
这里有几个您可能需要考虑的事情:
Here are few things which you might want to consider using:
- 讽刺
- < a href =http://msdn.microsoft.com/en-us/oslo/default.aspx =nofollow noreferrer> Oslo / MGrammar
- < a href =http://sourceforge.net/projects/csflex/ =nofollow noreferrer> C#Flex
- CocoR
- ANTLR
- GPPG
- Irony
- Oslo / MGrammar
- C# Flex
- CocoR
- ANTLR
- GPPG
这篇关于编译器编译器在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文