示例#1
0
		public override void Initialize(object state, TextReader textreader, SourceUnit sourceUnit, SS.SourceLocation initialLocation)
		{
			tokenizer = new Tokenizer (textreader.ReadToEnd ().ToCharArray (), new IdentifierTable ());
			tokenizer.Position = ConvertToMJCSrcLocation(initialLocation);
			this.sourceUnit = sourceUnit;
			this.state = state;
		}
示例#2
0
		private SourceLocation ConvertToMJCSrcLocation(SS.SourceLocation location)
		{
			return new SourceLocation (location.Index, location.Line, location.Column);
		}