EmbASP-CSharp
DLV2Lexer.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // ANTLR Version: 4.7
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10 
11 // Generated from DLV2Lexer.g4 by ANTLR 4.7
12 
13 // Unreachable code detected
14 #pragma warning disable 0162
15 // The variable '...' is assigned but its value is never used
16 #pragma warning disable 0219
17 // Missing XML comment for publicly visible type or member '...'
18 #pragma warning disable 1591
19 // Ambiguous reference in cref attribute
20 #pragma warning disable 419
21 
22 using System;
23 using System.IO;
24 using System.Text;
25 using Antlr4.Runtime;
26 using Antlr4.Runtime.Atn;
27 using Antlr4.Runtime.Misc;
28 using DFA = Antlr4.Runtime.Dfa.DFA;
29 
30 [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.7")]
31 [System.CLSCompliant(false)]
32 public partial class DLV2Lexer : Lexer {
33  protected static DFA[] decisionToDFA;
34  protected static PredictionContextCache sharedContextCache = new PredictionContextCache();
35  public const int
36  START=1, COST_LABEL=2, ANY=3, IGNORE=4, AT=5, INTEGER=6, NEW_LINE=7, BLANK_SPACE=8,
37  COMMA=9, INTEGER_CONSTANT=10, IDENTIFIER=11, MODEL_END=12, STRING_CONSTANT=13,
38  TERMS_BEGIN=14, TERMS_END=15, WHITE_SPACE=16;
39  public const int
40  COST=1, MODEL=2;
41  public static string[] channelNames = {
42  "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
43  };
44 
45  public static string[] modeNames = {
46  "DEFAULT_MODE", "COST", "MODEL"
47  };
48 
49  public static readonly string[] ruleNames = {
50  "START", "COST_LABEL", "ANY", "IGNORE", "AT", "INTEGER", "NEW_LINE", "BLANK_SPACE",
51  "COMMA", "INTEGER_CONSTANT", "IDENTIFIER", "MODEL_END", "STRING_CONSTANT",
52  "TERMS_BEGIN", "TERMS_END", "WHITE_SPACE", "INT", "NL", "WS"
53  };
54 
55 
56  public DLV2Lexer(ICharStream input)
57  : this(input, Console.Out, Console.Error) { }
58 
59  public DLV2Lexer(ICharStream input, TextWriter output, TextWriter errorOutput)
60  : base(input, output, errorOutput)
61  {
62  Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache);
63  }
64 
65  private static readonly string[] _LiteralNames = {
66  null, "'{'", null, null, null, "'@'", null, null, null, "','", null, null,
67  "'}'", null, "'('", "')'"
68  };
69  private static readonly string[] _SymbolicNames = {
70  null, "START", "COST_LABEL", "ANY", "IGNORE", "AT", "INTEGER", "NEW_LINE",
71  "BLANK_SPACE", "COMMA", "INTEGER_CONSTANT", "IDENTIFIER", "MODEL_END",
72  "STRING_CONSTANT", "TERMS_BEGIN", "TERMS_END", "WHITE_SPACE"
73  };
74  public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames);
75 
76  [NotNull]
77  public override IVocabulary Vocabulary
78  {
79  get
80  {
81  return DefaultVocabulary;
82  }
83  }
84 
85  public override string GrammarFileName { get { return "DLV2Lexer.g4"; } }
86 
87  public override string[] RuleNames { get { return ruleNames; } }
88 
89  public override string[] ChannelNames { get { return channelNames; } }
90 
91  public override string[] ModeNames { get { return modeNames; } }
92 
93  public override string SerializedAtn { get { return new string(_serializedATN); } }
94 
95  static DLV2Lexer() {
96  decisionToDFA = new DFA[_ATN.NumberOfDecisions];
97  for (int i = 0; i < _ATN.NumberOfDecisions; i++) {
98  decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i);
99  }
100  }
101  private static char[] _serializedATN = {
102  '\x3', '\x608B', '\xA72A', '\x8133', '\xB9ED', '\x417C', '\x3BE7', '\x7786',
103  '\x5964', '\x2', '\x12', '\x84', '\b', '\x1', '\b', '\x1', '\b', '\x1',
104  '\x4', '\x2', '\t', '\x2', '\x4', '\x3', '\t', '\x3', '\x4', '\x4', '\t',
105  '\x4', '\x4', '\x5', '\t', '\x5', '\x4', '\x6', '\t', '\x6', '\x4', '\a',
106  '\t', '\a', '\x4', '\b', '\t', '\b', '\x4', '\t', '\t', '\t', '\x4', '\n',
107  '\t', '\n', '\x4', '\v', '\t', '\v', '\x4', '\f', '\t', '\f', '\x4', '\r',
108  '\t', '\r', '\x4', '\xE', '\t', '\xE', '\x4', '\xF', '\t', '\xF', '\x4',
109  '\x10', '\t', '\x10', '\x4', '\x11', '\t', '\x11', '\x4', '\x12', '\t',
110  '\x12', '\x4', '\x13', '\t', '\x13', '\x4', '\x14', '\t', '\x14', '\x3',
111  '\x2', '\x3', '\x2', '\x3', '\x2', '\x3', '\x2', '\x3', '\x3', '\x3',
112  '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3',
113  '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3', '\x3',
114  '\x3', '\x3', '\x4', '\x6', '\x4', '=', '\n', '\x4', '\r', '\x4', '\xE',
115  '\x4', '>', '\x3', '\x4', '\x3', '\x4', '\x3', '\x5', '\x3', '\x5', '\x5',
116  '\x5', '\x45', '\n', '\x5', '\x3', '\x5', '\x3', '\x5', '\x3', '\x6',
117  '\x3', '\x6', '\x3', '\a', '\x3', '\a', '\x3', '\b', '\x3', '\b', '\x3',
118  '\b', '\x3', '\b', '\x3', '\t', '\x3', '\t', '\x3', '\t', '\x3', '\t',
119  '\x3', '\n', '\x3', '\n', '\x3', '\v', '\x3', '\v', '\x3', '\f', '\x3',
120  '\f', '\a', '\f', '[', '\n', '\f', '\f', '\f', '\xE', '\f', '^', '\v',
121  '\f', '\x3', '\r', '\x3', '\r', '\x3', '\r', '\x3', '\r', '\x3', '\xE',
122  '\x3', '\xE', '\a', '\xE', '\x66', '\n', '\xE', '\f', '\xE', '\xE', '\xE',
123  'i', '\v', '\xE', '\x3', '\xE', '\x3', '\xE', '\x3', '\xF', '\x3', '\xF',
124  '\x3', '\x10', '\x3', '\x10', '\x3', '\x11', '\x3', '\x11', '\x5', '\x11',
125  's', '\n', '\x11', '\x3', '\x11', '\x3', '\x11', '\x3', '\x12', '\x3',
126  '\x12', '\x3', '\x12', '\a', '\x12', 'z', '\n', '\x12', '\f', '\x12',
127  '\xE', '\x12', '}', '\v', '\x12', '\x5', '\x12', '\x7F', '\n', '\x12',
128  '\x3', '\x13', '\x3', '\x13', '\x3', '\x14', '\x3', '\x14', '\x3', '>',
129  '\x2', '\x15', '\x5', '\x3', '\a', '\x4', '\t', '\x5', '\v', '\x6', '\r',
130  '\a', '\xF', '\b', '\x11', '\t', '\x13', '\n', '\x15', '\v', '\x17', '\f',
131  '\x19', '\r', '\x1B', '\xE', '\x1D', '\xF', '\x1F', '\x10', '!', '\x11',
132  '#', '\x12', '%', '\x2', '\'', '\x2', ')', '\x2', '\x5', '\x2', '\x3',
133  '\x4', '\t', '\x4', '\x2', '\x43', '\\', '\x63', '|', '\x6', '\x2', '\x32',
134  ';', '\x43', '\\', '\x61', '\x61', '\x63', '|', '\x3', '\x2', '$', '$',
135  '\x3', '\x2', '\x33', ';', '\x3', '\x2', '\x32', ';', '\x4', '\x2', '\f',
136  '\f', '\xF', '\xF', '\x4', '\x2', '\v', '\v', '\"', '\"', '\x2', '\x85',
137  '\x2', '\x5', '\x3', '\x2', '\x2', '\x2', '\x2', '\a', '\x3', '\x2', '\x2',
138  '\x2', '\x2', '\t', '\x3', '\x2', '\x2', '\x2', '\x2', '\v', '\x3', '\x2',
139  '\x2', '\x2', '\x3', '\r', '\x3', '\x2', '\x2', '\x2', '\x3', '\xF', '\x3',
140  '\x2', '\x2', '\x2', '\x3', '\x11', '\x3', '\x2', '\x2', '\x2', '\x3',
141  '\x13', '\x3', '\x2', '\x2', '\x2', '\x4', '\x15', '\x3', '\x2', '\x2',
142  '\x2', '\x4', '\x17', '\x3', '\x2', '\x2', '\x2', '\x4', '\x19', '\x3',
143  '\x2', '\x2', '\x2', '\x4', '\x1B', '\x3', '\x2', '\x2', '\x2', '\x4',
144  '\x1D', '\x3', '\x2', '\x2', '\x2', '\x4', '\x1F', '\x3', '\x2', '\x2',
145  '\x2', '\x4', '!', '\x3', '\x2', '\x2', '\x2', '\x4', '#', '\x3', '\x2',
146  '\x2', '\x2', '\x5', '+', '\x3', '\x2', '\x2', '\x2', '\a', '/', '\x3',
147  '\x2', '\x2', '\x2', '\t', '<', '\x3', '\x2', '\x2', '\x2', '\v', '\x44',
148  '\x3', '\x2', '\x2', '\x2', '\r', 'H', '\x3', '\x2', '\x2', '\x2', '\xF',
149  'J', '\x3', '\x2', '\x2', '\x2', '\x11', 'L', '\x3', '\x2', '\x2', '\x2',
150  '\x13', 'P', '\x3', '\x2', '\x2', '\x2', '\x15', 'T', '\x3', '\x2', '\x2',
151  '\x2', '\x17', 'V', '\x3', '\x2', '\x2', '\x2', '\x19', 'X', '\x3', '\x2',
152  '\x2', '\x2', '\x1B', '_', '\x3', '\x2', '\x2', '\x2', '\x1D', '\x63',
153  '\x3', '\x2', '\x2', '\x2', '\x1F', 'l', '\x3', '\x2', '\x2', '\x2', '!',
154  'n', '\x3', '\x2', '\x2', '\x2', '#', 'r', '\x3', '\x2', '\x2', '\x2',
155  '%', '~', '\x3', '\x2', '\x2', '\x2', '\'', '\x80', '\x3', '\x2', '\x2',
156  '\x2', ')', '\x82', '\x3', '\x2', '\x2', '\x2', '+', ',', '\a', '}', '\x2',
157  '\x2', ',', '-', '\x3', '\x2', '\x2', '\x2', '-', '.', '\b', '\x2', '\x2',
158  '\x2', '.', '\x6', '\x3', '\x2', '\x2', '\x2', '/', '\x30', '\a', '\x45',
159  '\x2', '\x2', '\x30', '\x31', '\a', 'Q', '\x2', '\x2', '\x31', '\x32',
160  '\a', 'U', '\x2', '\x2', '\x32', '\x33', '\a', 'V', '\x2', '\x2', '\x33',
161  '\x34', '\a', '\"', '\x2', '\x2', '\x34', '\x35', '\x3', '\x2', '\x2',
162  '\x2', '\x35', '\x36', '\x5', '%', '\x12', '\x2', '\x36', '\x37', '\a',
163  '\x42', '\x2', '\x2', '\x37', '\x38', '\x5', '%', '\x12', '\x2', '\x38',
164  '\x39', '\x3', '\x2', '\x2', '\x2', '\x39', ':', '\b', '\x3', '\x3', '\x2',
165  ':', '\b', '\x3', '\x2', '\x2', '\x2', ';', '=', '\v', '\x2', '\x2', '\x2',
166  '<', ';', '\x3', '\x2', '\x2', '\x2', '=', '>', '\x3', '\x2', '\x2', '\x2',
167  '>', '?', '\x3', '\x2', '\x2', '\x2', '>', '<', '\x3', '\x2', '\x2', '\x2',
168  '?', '@', '\x3', '\x2', '\x2', '\x2', '@', '\x41', '\b', '\x4', '\x4',
169  '\x2', '\x41', '\n', '\x3', '\x2', '\x2', '\x2', '\x42', '\x45', '\x5',
170  '\'', '\x13', '\x2', '\x43', '\x45', '\x5', ')', '\x14', '\x2', '\x44',
171  '\x42', '\x3', '\x2', '\x2', '\x2', '\x44', '\x43', '\x3', '\x2', '\x2',
172  '\x2', '\x45', '\x46', '\x3', '\x2', '\x2', '\x2', '\x46', 'G', '\b',
173  '\x5', '\x4', '\x2', 'G', '\f', '\x3', '\x2', '\x2', '\x2', 'H', 'I',
174  '\a', '\x42', '\x2', '\x2', 'I', '\xE', '\x3', '\x2', '\x2', '\x2', 'J',
175  'K', '\x5', '%', '\x12', '\x2', 'K', '\x10', '\x3', '\x2', '\x2', '\x2',
176  'L', 'M', '\x5', '\'', '\x13', '\x2', 'M', 'N', '\x3', '\x2', '\x2', '\x2',
177  'N', 'O', '\b', '\b', '\x5', '\x2', 'O', '\x12', '\x3', '\x2', '\x2',
178  '\x2', 'P', 'Q', '\x5', ')', '\x14', '\x2', 'Q', 'R', '\x3', '\x2', '\x2',
179  '\x2', 'R', 'S', '\b', '\t', '\x4', '\x2', 'S', '\x14', '\x3', '\x2',
180  '\x2', '\x2', 'T', 'U', '\a', '.', '\x2', '\x2', 'U', '\x16', '\x3', '\x2',
181  '\x2', '\x2', 'V', 'W', '\x5', '%', '\x12', '\x2', 'W', '\x18', '\x3',
182  '\x2', '\x2', '\x2', 'X', '\\', '\t', '\x2', '\x2', '\x2', 'Y', '[', '\t',
183  '\x3', '\x2', '\x2', 'Z', 'Y', '\x3', '\x2', '\x2', '\x2', '[', '^', '\x3',
184  '\x2', '\x2', '\x2', '\\', 'Z', '\x3', '\x2', '\x2', '\x2', '\\', ']',
185  '\x3', '\x2', '\x2', '\x2', ']', '\x1A', '\x3', '\x2', '\x2', '\x2', '^',
186  '\\', '\x3', '\x2', '\x2', '\x2', '_', '`', '\a', '\x7F', '\x2', '\x2',
187  '`', '\x61', '\x3', '\x2', '\x2', '\x2', '\x61', '\x62', '\b', '\r', '\x5',
188  '\x2', '\x62', '\x1C', '\x3', '\x2', '\x2', '\x2', '\x63', 'g', '\a',
189  '$', '\x2', '\x2', '\x64', '\x66', '\n', '\x4', '\x2', '\x2', '\x65',
190  '\x64', '\x3', '\x2', '\x2', '\x2', '\x66', 'i', '\x3', '\x2', '\x2',
191  '\x2', 'g', '\x65', '\x3', '\x2', '\x2', '\x2', 'g', 'h', '\x3', '\x2',
192  '\x2', '\x2', 'h', 'j', '\x3', '\x2', '\x2', '\x2', 'i', 'g', '\x3', '\x2',
193  '\x2', '\x2', 'j', 'k', '\a', '$', '\x2', '\x2', 'k', '\x1E', '\x3', '\x2',
194  '\x2', '\x2', 'l', 'm', '\a', '*', '\x2', '\x2', 'm', ' ', '\x3', '\x2',
195  '\x2', '\x2', 'n', 'o', '\a', '+', '\x2', '\x2', 'o', '\"', '\x3', '\x2',
196  '\x2', '\x2', 'p', 's', '\x5', ')', '\x14', '\x2', 'q', 's', '\x5', '\'',
197  '\x13', '\x2', 'r', 'p', '\x3', '\x2', '\x2', '\x2', 'r', 'q', '\x3',
198  '\x2', '\x2', '\x2', 's', 't', '\x3', '\x2', '\x2', '\x2', 't', 'u', '\b',
199  '\x11', '\x4', '\x2', 'u', '$', '\x3', '\x2', '\x2', '\x2', 'v', '\x7F',
200  '\a', '\x32', '\x2', '\x2', 'w', '{', '\t', '\x5', '\x2', '\x2', 'x',
201  'z', '\t', '\x6', '\x2', '\x2', 'y', 'x', '\x3', '\x2', '\x2', '\x2',
202  'z', '}', '\x3', '\x2', '\x2', '\x2', '{', 'y', '\x3', '\x2', '\x2', '\x2',
203  '{', '|', '\x3', '\x2', '\x2', '\x2', '|', '\x7F', '\x3', '\x2', '\x2',
204  '\x2', '}', '{', '\x3', '\x2', '\x2', '\x2', '~', 'v', '\x3', '\x2', '\x2',
205  '\x2', '~', 'w', '\x3', '\x2', '\x2', '\x2', '\x7F', '&', '\x3', '\x2',
206  '\x2', '\x2', '\x80', '\x81', '\t', '\a', '\x2', '\x2', '\x81', '(', '\x3',
207  '\x2', '\x2', '\x2', '\x82', '\x83', '\t', '\b', '\x2', '\x2', '\x83',
208  '*', '\x3', '\x2', '\x2', '\x2', '\f', '\x2', '\x3', '\x4', '>', '\x44',
209  '\\', 'g', 'r', '{', '~', '\x6', '\x4', '\x4', '\x2', '\x4', '\x3', '\x2',
210  '\b', '\x2', '\x2', '\x4', '\x2', '\x2',
211  };
212 
213  public static readonly ATN _ATN =
214  new ATNDeserializer().Deserialize(_serializedATN);
215 
216 
217 }
base
Definition: Callback.cs:1