Example #1
0
		///////////////////////////////////////////////////////////////////////////
		
		//public void	SetSearchPath( string path )
		//{
		//	// ******
		//	//
		//	// clear current path set, split path at ';' and put
		//	// the non emtpy results into SearchPath
		//	//
		//	NmpStringList searchPaths = ThreadContext.SearchPaths;
		//	searchPaths.Clear();

		//	string [] a = path.Split( new char[] {';'} );
		//	
		//	foreach( string s in a ) {
		//		if( s.Length > 0 ) {
		//			searchPaths.Add( s );
		//		}
		//	}
		//}
		
		
		///////////////////////////////////////////////////////////////////////////
		
		public MasterParseReader( GrandCentral gc, NmpStack<string> dirStack, IBaseReader reader )
			:	base( gc, dirStack, reader, "Root source" )
		{
			this.BaseFileName = current.SourceName;
		}
Example #2
0
		public ParseReader( GrandCentral gc, NmpStack<string> dirStack, string text, string sourceFile, string context )
			: this( gc, dirStack, new ParseStringReader(text, sourceFile), context )
		{
		}
Example #3
0
		public ParseReader( GrandCentral gc, NmpStack<string> dirStack, IBaseReader reader, string context )
		{
			this.gc = gc;
			this.dirStack = dirStack;
			Initialize( reader, string.IsNullOrEmpty(context) ? "no context" : context );
		}
Example #4
0
		public ParseReader( GrandCentral gc, NmpStack<string> dirStack, string text )
		{
			this.gc = gc;
			this.dirStack = dirStack;
			Initialize( new ParseStringReader( text ), "no context" );
		}
Example #5
0
		public ParseReader( GrandCentral gc, NmpStack<string> dirStack )
		{
			this.gc = gc;
			this.dirStack = dirStack;
			Initialize( new ParseStringReader( string.Empty ), "empty reader" );
		}
Example #6
0
		public NonEscapingParseReader( GrandCentral gc, NmpStack<string> dirStack, string text )
			:	base(gc, dirStack, text)
		{
			CheckEscapesAndSpecialChars = false;
		}