EmbASP-CSharp
ASPGrammarLexer.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 ASPGrammar.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 ASPGrammarLexer : Lexer {
33  protected static DFA[] decisionToDFA;
34  protected static PredictionContextCache sharedContextCache = new PredictionContextCache();
35  public const int
36  T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, IDENTIFIER=6, INTEGER=7, STRING=8,
37  WHITESPACE=9;
38  public static string[] channelNames = {
39  "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
40  };
41 
42  public static string[] modeNames = {
43  "DEFAULT_MODE"
44  };
45 
46  public static readonly string[] ruleNames = {
47  "T__0", "T__1", "T__2", "T__3", "T__4", "IDENTIFIER", "INTEGER", "STRING",
48  "WHITESPACE"
49  };
50 
51 
52  public ASPGrammarLexer(ICharStream input)
53  : this(input, Console.Out, Console.Error) { }
54 
55  public ASPGrammarLexer(ICharStream input, TextWriter output, TextWriter errorOutput)
56  : base(input, output, errorOutput)
57  {
58  Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache);
59  }
60 
61  private static readonly string[] _LiteralNames = {
62  null, "'('", "','", "')'", "'['", "']'"
63  };
64  private static readonly string[] _SymbolicNames = {
65  null, null, null, null, null, null, "IDENTIFIER", "INTEGER", "STRING",
66  "WHITESPACE"
67  };
68  public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames);
69 
70  [NotNull]
71  public override IVocabulary Vocabulary
72  {
73  get
74  {
75  return DefaultVocabulary;
76  }
77  }
78 
79  public override string GrammarFileName { get { return "ASPGrammar.g4"; } }
80 
81  public override string[] RuleNames { get { return ruleNames; } }
82 
83  public override string[] ChannelNames { get { return channelNames; } }
84 
85  public override string[] ModeNames { get { return modeNames; } }
86 
87  public override string SerializedAtn { get { return new string(_serializedATN); } }
88 
89  static ASPGrammarLexer() {
90  decisionToDFA = new DFA[_ATN.NumberOfDecisions];
91  for (int i = 0; i < _ATN.NumberOfDecisions; i++) {
92  decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i);
93  }
94  }
95  private static char[] _serializedATN = {
96  '\x3', '\x608B', '\xA72A', '\x8133', '\xB9ED', '\x417C', '\x3BE7', '\x7786',
97  '\x5964', '\x2', '\v', '=', '\b', '\x1', '\x4', '\x2', '\t', '\x2', '\x4',
98  '\x3', '\t', '\x3', '\x4', '\x4', '\t', '\x4', '\x4', '\x5', '\t', '\x5',
99  '\x4', '\x6', '\t', '\x6', '\x4', '\a', '\t', '\a', '\x4', '\b', '\t',
100  '\b', '\x4', '\t', '\t', '\t', '\x4', '\n', '\t', '\n', '\x3', '\x2',
101  '\x3', '\x2', '\x3', '\x3', '\x3', '\x3', '\x3', '\x4', '\x3', '\x4',
102  '\x3', '\x5', '\x3', '\x5', '\x3', '\x6', '\x3', '\x6', '\x3', '\a', '\x3',
103  '\a', '\a', '\a', '\"', '\n', '\a', '\f', '\a', '\xE', '\a', '%', '\v',
104  '\a', '\x3', '\b', '\x3', '\b', '\x3', '\b', '\a', '\b', '*', '\n', '\b',
105  '\f', '\b', '\xE', '\b', '-', '\v', '\b', '\x5', '\b', '/', '\n', '\b',
106  '\x3', '\t', '\x3', '\t', '\a', '\t', '\x33', '\n', '\t', '\f', '\t',
107  '\xE', '\t', '\x36', '\v', '\t', '\x3', '\t', '\x3', '\t', '\x3', '\n',
108  '\x3', '\n', '\x3', '\n', '\x3', '\n', '\x2', '\x2', '\v', '\x3', '\x3',
109  '\x5', '\x4', '\a', '\x5', '\t', '\x6', '\v', '\a', '\r', '\b', '\xF',
110  '\t', '\x11', '\n', '\x13', '\v', '\x3', '\x2', '\b', '\x4', '\x2', '\x43',
111  '\\', '\x63', '|', '\x6', '\x2', '\x32', ';', '\x43', '\\', '\x61', '\x61',
112  '\x63', '|', '\x3', '\x2', '\x33', ';', '\x3', '\x2', '\x32', ';', '\x3',
113  '\x2', '$', '$', '\x5', '\x2', '\v', '\f', '\xF', '\xF', '\"', '\"', '\x2',
114  '@', '\x2', '\x3', '\x3', '\x2', '\x2', '\x2', '\x2', '\x5', '\x3', '\x2',
115  '\x2', '\x2', '\x2', '\a', '\x3', '\x2', '\x2', '\x2', '\x2', '\t', '\x3',
116  '\x2', '\x2', '\x2', '\x2', '\v', '\x3', '\x2', '\x2', '\x2', '\x2', '\r',
117  '\x3', '\x2', '\x2', '\x2', '\x2', '\xF', '\x3', '\x2', '\x2', '\x2',
118  '\x2', '\x11', '\x3', '\x2', '\x2', '\x2', '\x2', '\x13', '\x3', '\x2',
119  '\x2', '\x2', '\x3', '\x15', '\x3', '\x2', '\x2', '\x2', '\x5', '\x17',
120  '\x3', '\x2', '\x2', '\x2', '\a', '\x19', '\x3', '\x2', '\x2', '\x2',
121  '\t', '\x1B', '\x3', '\x2', '\x2', '\x2', '\v', '\x1D', '\x3', '\x2',
122  '\x2', '\x2', '\r', '\x1F', '\x3', '\x2', '\x2', '\x2', '\xF', '.', '\x3',
123  '\x2', '\x2', '\x2', '\x11', '\x30', '\x3', '\x2', '\x2', '\x2', '\x13',
124  '\x39', '\x3', '\x2', '\x2', '\x2', '\x15', '\x16', '\a', '*', '\x2',
125  '\x2', '\x16', '\x4', '\x3', '\x2', '\x2', '\x2', '\x17', '\x18', '\a',
126  '.', '\x2', '\x2', '\x18', '\x6', '\x3', '\x2', '\x2', '\x2', '\x19',
127  '\x1A', '\a', '+', '\x2', '\x2', '\x1A', '\b', '\x3', '\x2', '\x2', '\x2',
128  '\x1B', '\x1C', '\a', ']', '\x2', '\x2', '\x1C', '\n', '\x3', '\x2', '\x2',
129  '\x2', '\x1D', '\x1E', '\a', '_', '\x2', '\x2', '\x1E', '\f', '\x3', '\x2',
130  '\x2', '\x2', '\x1F', '#', '\t', '\x2', '\x2', '\x2', ' ', '\"', '\t',
131  '\x3', '\x2', '\x2', '!', ' ', '\x3', '\x2', '\x2', '\x2', '\"', '%',
132  '\x3', '\x2', '\x2', '\x2', '#', '!', '\x3', '\x2', '\x2', '\x2', '#',
133  '$', '\x3', '\x2', '\x2', '\x2', '$', '\xE', '\x3', '\x2', '\x2', '\x2',
134  '%', '#', '\x3', '\x2', '\x2', '\x2', '&', '/', '\a', '\x32', '\x2', '\x2',
135  '\'', '+', '\t', '\x4', '\x2', '\x2', '(', '*', '\t', '\x5', '\x2', '\x2',
136  ')', '(', '\x3', '\x2', '\x2', '\x2', '*', '-', '\x3', '\x2', '\x2', '\x2',
137  '+', ')', '\x3', '\x2', '\x2', '\x2', '+', ',', '\x3', '\x2', '\x2', '\x2',
138  ',', '/', '\x3', '\x2', '\x2', '\x2', '-', '+', '\x3', '\x2', '\x2', '\x2',
139  '.', '&', '\x3', '\x2', '\x2', '\x2', '.', '\'', '\x3', '\x2', '\x2',
140  '\x2', '/', '\x10', '\x3', '\x2', '\x2', '\x2', '\x30', '\x34', '\a',
141  '$', '\x2', '\x2', '\x31', '\x33', '\n', '\x6', '\x2', '\x2', '\x32',
142  '\x31', '\x3', '\x2', '\x2', '\x2', '\x33', '\x36', '\x3', '\x2', '\x2',
143  '\x2', '\x34', '\x32', '\x3', '\x2', '\x2', '\x2', '\x34', '\x35', '\x3',
144  '\x2', '\x2', '\x2', '\x35', '\x37', '\x3', '\x2', '\x2', '\x2', '\x36',
145  '\x34', '\x3', '\x2', '\x2', '\x2', '\x37', '\x38', '\a', '$', '\x2',
146  '\x2', '\x38', '\x12', '\x3', '\x2', '\x2', '\x2', '\x39', ':', '\t',
147  '\a', '\x2', '\x2', ':', ';', '\x3', '\x2', '\x2', '\x2', ';', '<', '\b',
148  '\n', '\x2', '\x2', '<', '\x14', '\x3', '\x2', '\x2', '\x2', '\a', '\x2',
149  '#', '+', '.', '\x34', '\x3', '\b', '\x2', '\x2',
150  };
151 
152  public static readonly ATN _ATN =
153  new ATNDeserializer().Deserialize(_serializedATN);
154 
155 
156 }
base
Definition: Callback.cs:1