Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SymbolType.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 //
4 // ----------------------------------------------------------------------
5 // Gold Parser engine.
6 // See more details on http://www.devincook.com/goldparser/
7 //
8 // Original code is written in VB by Devin Cook (GOLDParser@DevinCook.com)
9 //
10 // This translation is done by Vladimir Morozov (vmoroz@hotmail.com)
11 //
12 // The translation is based on the other engine translations:
13 // Delphi engine by Alexandre Rai (riccio@gmx.at)
14 // C# engine by Marcus Klimstra (klimstra@home.nl)
15 // ----------------------------------------------------------------------
16 #region Using directives
17 
18 using System;
19 
20 #endregion
21 
22 namespace GoldParser
23 {
24  /// <summary>
25  /// Type of symbol.
26  /// </summary>
27  internal enum SymbolType
28  {
29  /// <summary>
30  /// Normal nonterminal
31  /// </summary>
32  NonTerminal = 0,
33 
34  /// <summary>
35  /// Normal terminal
36  /// </summary>
37  Terminal = 1,
38 
39  /// <summary>
40  /// This Whitespace symbols is a special terminal
41  /// that is automatically ignored the the parsing engine.
42  /// Any text accepted as whitespace is considered
43  /// to be inconsequential and "meaningless".
44  /// </summary>
45  WhiteSpace = 2,
46 
47  /// <summary>
48  /// The End symbol is generated when the tokenizer
49  /// reaches the end of the source text.
50  /// </summary>
51  End = 3,
52 
53  /// <summary>
54  /// This type of symbol designates the start of a block quote.
55  /// </summary>
56  CommentStart = 4,
57 
58  /// <summary>
59  /// This type of symbol designates the end of a block quote.
60  /// </summary>
61  CommentEnd = 5,
62 
63  /// <summary>
64  /// When the engine reads a token that is recognized as
65  /// a line comment, the remaining characters on the line
66  /// are automatically ignored by the parser.
67  /// </summary>
68  CommentLine = 6,
69 
70  /// <summary>
71  /// The Error symbol is a general-purpose means
72  /// of representing characters that were not recognized
73  /// by the tokenizer. In other words, when the tokenizer
74  /// reads a series of characters that is not accepted
75  /// by the DFA engine, a token of this type is created.
76  /// </summary>
77  Error = 7
78  }
79 }
This type of symbol designates the start of a block quote.
This type of symbol designates the end of a block quote.
Normal terminal
Normal nonterminal
When the engine reads a token that is recognized as a line comment, the remaining characters on the l...
This Whitespace symbols is a special terminal that is automatically ignored the the parsing engine...
The End symbol is generated when the tokenizer reaches the end of the source text.