Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ParserTrace.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.Linq;
16 using System.Text;
17 
18 namespace Irony.Parsing {
19  public class ParserTraceEntry {
23  public string Message;
24  public bool IsError;
25 
26  public ParserTraceEntry(ParserState state, ParseTreeNode stackTop, ParseTreeNode input, string message, bool isError) {
27  State = state;
28  StackTop = stackTop;
29  Input = input;
30  Message = message;
31  IsError = isError;
32  }
33  }//class
34 
35  public class ParserTrace : List<ParserTraceEntry> { }
36 
39  Entry = entry;
40  }
41 
42  public readonly ParserTraceEntry Entry;
43 
44  public override string ToString() {
45  return Entry.ToString();
46  }
47  }//class
48 
49 
50 
51 }//namespace
bool IsError
Definition: ParserTrace.cs:24
ParserTraceEntry(ParserState state, ParseTreeNode stackTop, ParseTreeNode input, string message, bool isError)
Definition: ParserTrace.cs:26
Definition: ParserTrace.cs:19
ParseTreeNode StackTop
Definition: ParserTrace.cs:21
ParseTreeNode Input
Definition: ParserTrace.cs:22
ParserTraceEventArgs(ParserTraceEntry entry)
Definition: ParserTrace.cs:38
string Message
Definition: ParserTrace.cs:23
ParserState State
Definition: ParserTrace.cs:20
readonly ParserTraceEntry Entry
Definition: ParserTrace.cs:42