Example #1
0
		protected IdentifierToken ParseFileDeclaration(TokenType fileDeclarationType, out Token fileDeclarationToken)
		{
			fileDeclarationToken = Eat(fileDeclarationType);

			IdentifierToken name = (IdentifierToken)Eat(TokenType.Identifier);
			Eat(TokenType.Semicolon);

			return name;
		}
Example #2
0
		protected void ReportError(string message, Token token, params object[] args)
		{
			BufferPosition position = token.Position;
			if (Error != null && _lastErrorPosition != position)
				Error(this, new ErrorEventArgs(string.Format(message, args), position));
			_lastErrorPosition = position;
		}
Example #3
0
		public FragmentParser(string path, Token[] tokens)
			: base(path, tokens)
		{
		}
Example #4
0
		protected Parser(string path, Token[] tokens)
		{
			_path = path;
			_tokens = tokens;
		}
		public StitchedEffectParser(string path, Token[] tokens, ContentIdentity identity)
			: base(path, tokens)
		{
			_identity = identity;
		}