Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SyntaxError.cs
Go to the documentation of this file.
1 #region License
2 /* **********************************************************************************
3  * Copyright (c) Roman Ivantsov
4  * This source code is subject to terms and conditions of the MIT License
5  * for Irony. A copy of the license can be found in the License.txt file
6  * at the root of this distribution.
7  * By using this source code in any fashion, you are agreeing to be bound by the terms of the
8  * MIT License.
9  * You must not remove this notice from this software.
10  * **********************************************************************************/
11 #endregion
12 
13 using System;
14 using System.Collections.Generic;
15 using System.Text;
16 
17 namespace Irony.Parsing {
18 
19  //Container for syntax error
20  public class SyntaxError {
21  public SyntaxError(SourceLocation location, string message, ParserState parserState) {
22  Location = location;
23  Message = message;
24  ParserState = parserState;
25  }
26 
27  public readonly SourceLocation Location;
28  public readonly string Message;
30 
31  public override string ToString() {
32  return Message;
33  }
34  }//class
35 
36  public class SyntaxErrorList : List<SyntaxError> {
37  public static int ByLocation(SyntaxError x, SyntaxError y) {
38  return SourceLocation.Compare(x.Location, y.Location);
39  }
40  }
41 
42 }//namespace
readonly SourceLocation Location
Definition: SyntaxError.cs:27
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ float size_t y
Definition: DirectXTexP.h:191
override string ToString()
Definition: SyntaxError.cs:31
static int ByLocation(SyntaxError x, SyntaxError y)
Definition: SyntaxError.cs:37
readonly string Message
Definition: SyntaxError.cs:28
SyntaxError(SourceLocation location, string message, ParserState parserState)
Definition: SyntaxError.cs:21