main.cs

来自「c#源代码」· CS 代码 · 共 42 行

CS
42
字号
/*using System;
using ICSharpCode.SharpRefactory.Parser.AST.VB;
using ICSharpCode.SharpRefactory.Parser.VB;

class MainClass
{
	public static void Main (string[] args) {
		
		string fileName = args[0];
		
		Console.WriteLine("Parsing source file {0}", fileName);
		IReader reader = new FileReader(fileName);
		Lexer lexer = new Lexer(reader);
		
//		while(true)
//		{
//			Token t = lexer.NextToken();
//			if(t.kind == Tokens.EOF) break;
//			
//			System.Console.WriteLine(t.val + "\t" + t.kind);
//		}
		
		Parser p = new Parser();
		p.Parse(lexer);
		if(p.Errors.count == 0) {
//			p.compilationUnit.AcceptVisitor(new DebugVisitor(), null);
		}
		
		System.Console.WriteLine("=======================");
		if (p.Errors.count == 1)
			Console.WriteLine("1 error dectected");
		else {
			Console.WriteLine("{0} errors dectected", p.Errors.count);
		}
		
		if(p.Errors.count != 0) {
			System.Console.WriteLine(p.Errors.ErrorOutput);
		}
		System.Console.WriteLine("=======================");
	}
}*/

⌨️ 快捷键说明

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