EmbASP-Java
ASPGrammarLexer.java
1 package it.unical.mat.parsers.asp.asp_parser_base;
2 
3 // Generated from ASPGrammar.g4 by ANTLR 4.7
4 import org.antlr.v4.runtime.Lexer;
5 import org.antlr.v4.runtime.CharStream;
6 import org.antlr.v4.runtime.Token;
7 import org.antlr.v4.runtime.TokenStream;
8 import org.antlr.v4.runtime.*;
9 import org.antlr.v4.runtime.atn.*;
10 import org.antlr.v4.runtime.dfa.DFA;
11 import org.antlr.v4.runtime.misc.*;
12 
13 @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
14 public class ASPGrammarLexer extends Lexer {
15  static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); }
16 
17  protected static final DFA[] _decisionToDFA;
18  protected static final PredictionContextCache _sharedContextCache =
19  new PredictionContextCache();
20  public static final int
21  T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, IDENTIFIER=6, INTEGER=7, STRING=8,
22  WHITESPACE=9;
23  public static String[] channelNames = {
24  "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
25  };
26 
27  public static String[] modeNames = {
28  "DEFAULT_MODE"
29  };
30 
31  public static final String[] ruleNames = {
32  "T__0", "T__1", "T__2", "T__3", "T__4", "IDENTIFIER", "INTEGER", "STRING",
33  "WHITESPACE"
34  };
35 
36  private static final String[] _LITERAL_NAMES = {
37  null, "'('", "','", "')'", "'['", "']'"
38  };
39  private static final String[] _SYMBOLIC_NAMES = {
40  null, null, null, null, null, null, "IDENTIFIER", "INTEGER", "STRING",
41  "WHITESPACE"
42  };
43  public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
44 
48  @Deprecated
49  public static final String[] tokenNames;
50  static {
51  tokenNames = new String[_SYMBOLIC_NAMES.length];
52  for (int i = 0; i < tokenNames.length; i++) {
53  tokenNames[i] = VOCABULARY.getLiteralName(i);
54  if (tokenNames[i] == null) {
55  tokenNames[i] = VOCABULARY.getSymbolicName(i);
56  }
57 
58  if (tokenNames[i] == null) {
59  tokenNames[i] = "<INVALID>";
60  }
61  }
62  }
63 
64  @Override
65  @Deprecated
66  public String[] getTokenNames() {
67  return tokenNames;
68  }
69 
70  @Override
71 
72  public Vocabulary getVocabulary() {
73  return VOCABULARY;
74  }
75 
76 
77  public ASPGrammarLexer(CharStream input) {
78  super(input);
79  _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
80  }
81 
82  @Override
83  public String getGrammarFileName() { return "ASPGrammar.g4"; }
84 
85  @Override
86  public String[] getRuleNames() { return ruleNames; }
87 
88  @Override
89  public String getSerializedATN() { return _serializedATN; }
90 
91  @Override
92  public String[] getChannelNames() { return channelNames; }
93 
94  @Override
95  public String[] getModeNames() { return modeNames; }
96 
97  @Override
98  public ATN getATN() { return _ATN; }
99 
100  public static final String _serializedATN =
101  "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\13=\b\1\4\2\t\2\4"+
102  "\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\3\2\3\2"+
103  "\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\7\7\"\n\7\f\7\16\7%\13\7\3\b"+
104  "\3\b\3\b\7\b*\n\b\f\b\16\b-\13\b\5\b/\n\b\3\t\3\t\7\t\63\n\t\f\t\16\t"+
105  "\66\13\t\3\t\3\t\3\n\3\n\3\n\3\n\2\2\13\3\3\5\4\7\5\t\6\13\7\r\b\17\t"+
106  "\21\n\23\13\3\2\b\4\2C\\c|\6\2\62;C\\aac|\3\2\63;\3\2\62;\3\2$$\5\2\13"+
107  "\f\17\17\"\"\2@\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3"+
108  "\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\3\25\3\2\2\2"+
109  "\5\27\3\2\2\2\7\31\3\2\2\2\t\33\3\2\2\2\13\35\3\2\2\2\r\37\3\2\2\2\17"+
110  ".\3\2\2\2\21\60\3\2\2\2\239\3\2\2\2\25\26\7*\2\2\26\4\3\2\2\2\27\30\7"+
111  ".\2\2\30\6\3\2\2\2\31\32\7+\2\2\32\b\3\2\2\2\33\34\7]\2\2\34\n\3\2\2\2"+
112  "\35\36\7_\2\2\36\f\3\2\2\2\37#\t\2\2\2 \"\t\3\2\2! \3\2\2\2\"%\3\2\2\2"+
113  "#!\3\2\2\2#$\3\2\2\2$\16\3\2\2\2%#\3\2\2\2&/\7\62\2\2\'+\t\4\2\2(*\t\5"+
114  "\2\2)(\3\2\2\2*-\3\2\2\2+)\3\2\2\2+,\3\2\2\2,/\3\2\2\2-+\3\2\2\2.&\3\2"+
115  "\2\2.\'\3\2\2\2/\20\3\2\2\2\60\64\7$\2\2\61\63\n\6\2\2\62\61\3\2\2\2\63"+
116  "\66\3\2\2\2\64\62\3\2\2\2\64\65\3\2\2\2\65\67\3\2\2\2\66\64\3\2\2\2\67"+
117  "8\7$\2\28\22\3\2\2\29:\t\7\2\2:;\3\2\2\2;<\b\n\2\2<\24\3\2\2\2\7\2#+."+
118  "\64\3\b\2\2";
119  public static final ATN _ATN =
120  new ATNDeserializer().deserialize(_serializedATN.toCharArray());
121  static {
122  _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
123  for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
124  _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
125  }
126  }
127 }
it.unical.mat.parsers.asp.asp_parser_base.ASPGrammarLexer
Definition: ASPGrammarLexer.java:14
it.unical.mat.parsers.asp.asp_parser_base.ASPGrammarLexer.tokenNames
static final String[] tokenNames
Definition: ASPGrammarLexer.java:49