是否可以调用C#词法/语法分析器没有编制? [英] Is it possible to call C# lexical/syntactic analyzers without compilation?

查看:170
本文介绍了是否可以调用C#词法/语法分析器没有编制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到这一点<一个href="http://stackoverflow.com/questions/2606322/c-how-to-check-if-string-is-a-namespace">question所以,在整个C#内存编译器被调用。当只有词法和句法分析是必需的:解析文本作为词素流,检查并退出。

Considering this question of SO, where whole C# in-memory compiler is being called. When only lexical and syntactic analyzing is required: parse text as a stream of lexemes, check them and exit.

是否有可能在系统的最新版本。 codeDom.Compiler ,如果​​不是 - ?会是

Is it possible in current version of System.CodeDom.Compiler, if not - will it be?

推荐答案

如果您可以使用单声道的,我相信的它有一个C#编译器/词法您可以使用。

If you can use Mono, I believe it has a C# parser/lexer you may be able to use.

下面是一个链接看看。至于什么MS C#的团队正在计划做的,<一个href="http://stackoverflow.com/questions/2210734/what-is-the-state-of-the-c-compiler-as-a-service">there是在某些时候让C#编译器变成了服务的一些谈话 - 但目前还不清楚这是什么意思时或会发生

Here's a link to look into. As for what the MS C# team is planning to do, there is some talk of at some point making the C# compiler into a "service" - but it's unclear what that means or when that will happen.

这篇关于是否可以调用C#词法/语法分析器没有编制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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