⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lexertests.cs

📁 c#源代码
💻 CS
字号:
// project created on 28.08.2003 at 16:17
using System;

using ICSharpCode.SharpUnit;
using ICSharpCode.SharpRefactory.PrettyPrinter;
using ICSharpCode.SharpRefactory.Parser;
	
[TestSuiteAttribute()]
class MainClass
{
	[TestMethodAttribute()]
	void TestLexer1()
	{
//		Lexer lexer = new Lexer(new StringReader("(int)i"));
//		lexer.NextToken();
//		Assertion.AssertEquals(lexer.LookAhead.kind, Tokens.OpenParenthesis);
//		lexer.NextToken();
//		Assertion.AssertEquals(lexer.LookAhead.kind, Tokens.Int);
//		lexer.NextToken();
//		Assertion.AssertEquals(lexer.LookAhead.kind, Tokens.CloseParenthesis);
//		lexer.NextToken();
//		Assertion.AssertEquals(lexer.LookAhead.kind, Tokens.Identifier);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -