Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

C# CodeDOM parser

, 27 Jun 2002
This is a utility which parses C# source code and creates the CODEDOM tree of the code.
cscodedomparser01.zip
CSParser
bin
Debug
Release
CodeTreeView
App.ico
bin
Debug
CodeTreeView.csproj.user
obj
Debug
temp
TempPE
cs-parser-modified.jay
cs-parser.jay
CSParser.csproj.user
CSParser.suo
jay
.cvsignore
ACKNOWLEDGEMENTS
ChangeLog
closure.o
conflict
CVS
Entries
Repository
Root
CVS
Entries
Entries.Log
Repository
Root
depend
error.o
jay.1
jay.exe
lalr.o
lr0.o
main.o
makefile
mkpar.o
NEW_FEATURES
NOTES
output.o
reader.o
README
README.jay
recover
CVS
Entries
Repository
Root
skeleton
symtab.o
verbose.o
warshall.o
NUnitTests
bin
Debug
Release
NUnitTests.csproj.user
obj
Debug
temp
TempPE
Release
temp
TempPE
TestFiles
obj
Debug
temp
TempPE
Release
temp
TempPE
testParser
bin
Debug
obj
Debug
temp
TempPE
testParser
App.ico
bin
Debug
Release
obj
Debug
temp
TempPE
Release
temp
TempPE
testParser.csproj.user
/*
 * bla bla bla
 * more more more more
 */
using System;
// using comment
using System.Collections;
using System.Reflection;


// Ns coment
namespace testParser //After NS comment
{
	//using System.Xml.Serialization;
	
	/// <summary>
	/// test class
	/// </summary>
	[PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")]
	 public class Class2 //After Class
	{
		 
		

		/// <summary>
		/// 
		/// </summary>
		/// <param name="i"></param>
		/// <param name="j"></param>
		/// <returns></returns>
		public  int methodA( int i, int j)  // After method
		
		 {

			if (_CurState._EndChildFunc != null) 
			{
				this._CurState._EndChildFunc(this);
			}

			//Inside method
		 return 0;
			//before local declaration
			int i;
		 }

		
		//single line comment
		public event EventHandler evt;

		/// <summary>
		/// indexer - why it did not generate tag for param automatically
		/// </summary>
		public object this[int i]
		 {
			//inside indexer block 
			get {
				 
				 return null;
			 }

		 }

	}

    /// <summary>

    /// something
    /// </summary>
	public delegate int MyDelegate([PAttribute]object o);

	/*
	 * anything 
	 */

	[IsReallyNothing]
	public interface INothing
	{}

	[FlagsAttribute]
	public enum En1 // After enum
	{
		/// <summary>
		/// Value 1
		/// </summary>
		[V1Attribute("mfbu")]
		val1=1,
		[V2Attribute("mfbu")]
		val2=2
	}

	/// <summary>
	/// structure
	/// </summary>
	[ValAttribute(true, loc="somewhere", mode="auto")]
	public struct Str1 {} 

	
	

}



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Ivan Zderadièka

Czech Republic Czech Republic
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 28 Jun 2002
Article Copyright 2002 by Ivan Zderadièka
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid