// Code generated from IRI.g4 by ANTLR 4.9.3. DO NOT EDIT.

package iri

import (
	"fmt"
	"unicode"

	"github.com/antlr/antlr4/runtime/Go/antlr"
)

// Suppress unused import error
var _ = fmt.Printf
var _ = unicode.IsLetter

var serializedLexerAtn = []uint16{
	3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 65, 257,
	8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7,
	9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12,
	4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4,
	18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23,
	9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9,
	28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33,
	4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4,
	39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44,
	9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9,
	49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54,
	4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 4, 58, 9, 58, 4, 59, 9, 59, 4,
	60, 9, 60, 4, 61, 9, 61, 4, 62, 9, 62, 4, 63, 9, 63, 4, 64, 9, 64, 3, 2,
	3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8,
	3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 13, 3, 13,
	3, 14, 3, 14, 3, 15, 3, 15, 3, 16, 3, 16, 3, 17, 3, 17, 3, 18, 3, 18, 3,
	19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24,
	3, 24, 3, 25, 3, 25, 3, 26, 3, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3,
	29, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3, 34,
	3, 35, 3, 35, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 39, 3, 39, 3,
	40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 42, 3, 42, 3, 43, 3, 43, 3, 44, 3, 44,
	3, 45, 3, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 49, 3, 49, 3,
	50, 3, 50, 3, 51, 3, 51, 3, 52, 3, 52, 3, 53, 3, 53, 3, 54, 3, 54, 3, 55,
	3, 55, 3, 56, 3, 56, 3, 57, 3, 57, 3, 58, 3, 58, 3, 58, 3, 59, 3, 59, 3,
	60, 3, 60, 3, 61, 3, 61, 3, 62, 3, 62, 3, 63, 3, 63, 3, 64, 3, 64, 2, 2,
	65, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21, 12,
	23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39, 21,
	41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57, 30,
	59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75, 39,
	77, 40, 79, 41, 81, 42, 83, 43, 85, 44, 87, 45, 89, 46, 91, 47, 93, 48,
	95, 49, 97, 50, 99, 51, 101, 52, 103, 53, 105, 54, 107, 55, 109, 56, 111,
	57, 113, 58, 115, 59, 117, 60, 119, 61, 121, 62, 123, 63, 125, 64, 127,
	65, 3, 2, 28, 4, 2, 67, 67, 99, 99, 4, 2, 68, 68, 100, 100, 4, 2, 69, 69,
	101, 101, 4, 2, 70, 70, 102, 102, 4, 2, 71, 71, 103, 103, 4, 2, 72, 72,
	104, 104, 4, 2, 73, 73, 105, 105, 4, 2, 74, 74, 106, 106, 4, 2, 75, 75,
	107, 107, 4, 2, 76, 76, 108, 108, 4, 2, 77, 77, 109, 109, 4, 2, 78, 78,
	110, 110, 4, 2, 79, 79, 111, 111, 4, 2, 80, 80, 112, 112, 4, 2, 81, 81,
	113, 113, 4, 2, 82, 82, 114, 114, 4, 2, 83, 83, 115, 115, 4, 2, 84, 84,
	116, 116, 4, 2, 85, 85, 117, 117, 4, 2, 86, 86, 118, 118, 4, 2, 87, 87,
	119, 119, 4, 2, 88, 88, 120, 120, 4, 2, 89, 89, 121, 121, 4, 2, 90, 90,
	122, 122, 4, 2, 91, 91, 123, 123, 4, 2, 92, 92, 124, 124, 4, 19, 2, 162,
	2, 55297, 2, 63746, 2, 64977, 2, 65010, 2, 65521, 2, 2, 3, 65535, 3, 2,
	4, 65535, 4, 2, 5, 65535, 5, 2, 6, 65535, 6, 2, 7, 65535, 7, 2, 8, 65535,
	8, 2, 9, 65535, 9, 2, 10, 65535, 10, 2, 11, 65535, 11, 2, 12, 65535, 12,
	2, 13, 65535, 13, 2, 14, 65535, 14, 2, 15, 65535, 15, 4098, 16, 65535,
	16, 5, 2, 57346, 2, 63745, 2, 2, 17, 65535, 17, 2, 18, 65535, 18, 256,
	2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2,
	2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2,
	2, 2, 19, 3, 2, 2, 2, 2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 133, 3, 2, 2, 2, 9, 135, 3, 2, 2, 2, 11, 137, 3, 2,
	2, 2, 13, 139, 3, 2, 2, 2, 15, 141, 3, 2, 2, 2, 17, 143, 3, 2, 2, 2, 19,
	145, 3, 2, 2, 2, 21, 147, 3, 2, 2, 2, 23, 149, 3, 2, 2, 2, 25, 151, 3,
	2, 2, 2, 27, 153, 3, 2, 2, 2, 29, 155, 3, 2, 2, 2, 31, 157, 3, 2, 2, 2,
	33, 159, 3, 2, 2, 2, 35, 161, 3, 2, 2, 2, 37, 163, 3, 2, 2, 2, 39, 165,
	3, 2, 2, 2, 41, 167, 3, 2, 2, 2, 43, 169, 3, 2, 2, 2, 45, 171, 3, 2, 2,
	2, 47, 173, 3, 2, 2, 2, 49, 175, 3, 2, 2, 2, 51, 177, 3, 2, 2, 2, 53, 179,
	3, 2, 2, 2, 55, 181, 3, 2, 2, 2, 57, 183, 3, 2, 2, 2, 59, 185, 3, 2, 2,
	2, 61, 187, 3, 2, 2, 2, 63, 189, 3, 2, 2, 2, 65, 191, 3, 2, 2, 2, 67, 193,
	3, 2, 2, 2, 69, 195, 3, 2, 2, 2, 71, 197, 3, 2, 2, 2, 73, 199, 3, 2, 2,
	2, 75, 201, 3, 2, 2, 2, 77, 203, 3, 2, 2, 2, 79, 205, 3, 2, 2, 2, 81, 208,
	3, 2, 2, 2, 83, 210, 3, 2, 2, 2, 85, 212, 3, 2, 2, 2, 87, 214, 3, 2, 2,
	2, 89, 216, 3, 2, 2, 2, 91, 218, 3, 2, 2, 2, 93, 220, 3, 2, 2, 2, 95, 222,
	3, 2, 2, 2, 97, 224, 3, 2, 2, 2, 99, 226, 3, 2, 2, 2, 101, 228, 3, 2, 2,
	2, 103, 230, 3, 2, 2, 2, 105, 232, 3, 2, 2, 2, 107, 234, 3, 2, 2, 2, 109,
	236, 3, 2, 2, 2, 111, 238, 3, 2, 2, 2, 113, 240, 3, 2, 2, 2, 115, 242,
	3, 2, 2, 2, 117, 245, 3, 2, 2, 2, 119, 247, 3, 2, 2, 2, 121, 249, 3, 2,
	2, 2, 123, 251, 3, 2, 2, 2, 125, 253, 3, 2, 2, 2, 127, 255, 3, 2, 2, 2,
	129, 130, 9, 28, 2, 2, 130, 4, 3, 2, 2, 2, 131, 132, 9, 29, 2, 2, 132,
	6, 3, 2, 2, 2, 133, 134, 7, 50, 2, 2, 134, 8, 3, 2, 2, 2, 135, 136, 7,
	51, 2, 2, 136, 10, 3, 2, 2, 2, 137, 138, 7, 52, 2, 2, 138, 12, 3, 2, 2,
	2, 139, 140, 7, 53, 2, 2, 140, 14, 3, 2, 2, 2, 141, 142, 7, 54, 2, 2, 142,
	16, 3, 2, 2, 2, 143, 144, 7, 55, 2, 2, 144, 18, 3, 2, 2, 2, 145, 146, 7,
	56, 2, 2, 146, 20, 3, 2, 2, 2, 147, 148, 7, 57, 2, 2, 148, 22, 3, 2, 2,
	2, 149, 150, 7, 58, 2, 2, 150, 24, 3, 2, 2, 2, 151, 152, 7, 59, 2, 2, 152,
	26, 3, 2, 2, 2, 153, 154, 9, 2, 2, 2, 154, 28, 3, 2, 2, 2, 155, 156, 9,
	3, 2, 2, 156, 30, 3, 2, 2, 2, 157, 158, 9, 4, 2, 2, 158, 32, 3, 2, 2, 2,
	159, 160, 9, 5, 2, 2, 160, 34, 3, 2, 2, 2, 161, 162, 9, 6, 2, 2, 162, 36,
	3, 2, 2, 2, 163, 164, 9, 7, 2, 2, 164, 38, 3, 2, 2, 2, 165, 166, 9, 8,
	2, 2, 166, 40, 3, 2, 2, 2, 167, 168, 9, 9, 2, 2, 168, 42, 3, 2, 2, 2, 169,
	170, 9, 10, 2, 2, 170, 44, 3, 2, 2, 2, 171, 172, 9, 11, 2, 2, 172, 46,
	3, 2, 2, 2, 173, 174, 9, 12, 2, 2, 174, 48, 3, 2, 2, 2, 175, 176, 9, 13,
	2, 2, 176, 50, 3, 2, 2, 2, 177, 178, 9, 14, 2, 2, 178, 52, 3, 2, 2, 2,
	179, 180, 9, 15, 2, 2, 180, 54, 3, 2, 2, 2, 181, 182, 9, 16, 2, 2, 182,
	56, 3, 2, 2, 2, 183, 184, 9, 17, 2, 2, 184, 58, 3, 2, 2, 2, 185, 186, 9,
	18, 2, 2, 186, 60, 3, 2, 2, 2, 187, 188, 9, 19, 2, 2, 188, 62, 3, 2, 2,
	2, 189, 190, 9, 20, 2, 2, 190, 64, 3, 2, 2, 2, 191, 192, 9, 21, 2, 2, 192,
	66, 3, 2, 2, 2, 193, 194, 9, 22, 2, 2, 194, 68, 3, 2, 2, 2, 195, 196, 9,
	23, 2, 2, 196, 70, 3, 2, 2, 2, 197, 198, 9, 24, 2, 2, 198, 72, 3, 2, 2,
	2, 199, 200, 9, 25, 2, 2, 200, 74, 3, 2, 2, 2, 201, 202, 9, 26, 2, 2, 202,
	76, 3, 2, 2, 2, 203, 204, 9, 27, 2, 2, 204, 78, 3, 2, 2, 2, 205, 206, 7,
	60, 2, 2, 206, 207, 7, 60, 2, 2, 207, 80, 3, 2, 2, 2, 208, 209, 7, 60,
	2, 2, 209, 82, 3, 2, 2, 2, 210, 211, 7, 48, 2, 2, 211, 84, 3, 2, 2, 2,
	212, 213, 7, 39, 2, 2, 213, 86, 3, 2, 2, 2, 214, 215, 7, 47, 2, 2, 215,
	88, 3, 2, 2, 2, 216, 217, 7, 128, 2, 2, 217, 90, 3, 2, 2, 2, 218, 219,
	7, 97, 2, 2, 219, 92, 3, 2, 2, 2, 220, 221, 7, 35, 2, 2, 221, 94, 3, 2,
	2, 2, 222, 223, 7, 38, 2, 2, 223, 96, 3, 2, 2, 2, 224, 225, 7, 40, 2, 2,
	225, 98, 3, 2, 2, 2, 226, 227, 7, 41, 2, 2, 227, 100, 3, 2, 2, 2, 228,
	229, 7, 42, 2, 2, 229, 102, 3, 2, 2, 2, 230, 231, 7, 43, 2, 2, 231, 104,
	3, 2, 2, 2, 232, 233, 7, 44, 2, 2, 233, 106, 3, 2, 2, 2, 234, 235, 7, 45,
	2, 2, 235, 108, 3, 2, 2, 2, 236, 237, 7, 46, 2, 2, 237, 110, 3, 2, 2, 2,
	238, 239, 7, 61, 2, 2, 239, 112, 3, 2, 2, 2, 240, 241, 7, 63, 2, 2, 241,
	114, 3, 2, 2, 2, 242, 243, 7, 49, 2, 2, 243, 244, 7, 49, 2, 2, 244, 116,
	3, 2, 2, 2, 245, 246, 7, 49, 2, 2, 246, 118, 3, 2, 2, 2, 247, 248, 7, 65,
	2, 2, 248, 120, 3, 2, 2, 2, 249, 250, 7, 37, 2, 2, 250, 122, 3, 2, 2, 2,
	251, 252, 7, 93, 2, 2, 252, 124, 3, 2, 2, 2, 253, 254, 7, 95, 2, 2, 254,
	126, 3, 2, 2, 2, 255, 256, 7, 66, 2, 2, 256, 128, 3, 2, 2, 2, 3, 2, 2,
}

var lexerChannelNames = []string{
	"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
}

var lexerModeNames = []string{
	"DEFAULT_MODE",
}

var lexerLiteralNames = []string{
	"", "", "", "'0'", "'1'", "'2'", "'3'", "'4'", "'5'", "'6'", "'7'", "'8'",
	"'9'", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
	"", "", "", "", "", "", "", "", "", "", "'::'", "':'", "'.'", "'%'", "'-'",
	"'~'", "'_'", "'!'", "'$'", "'&'", "'''", "'('", "')'", "'*'", "'+'", "','",
	"';'", "'='", "'//'", "'/'", "'?'", "'#'", "'['", "']'", "'@'",
}

var lexerSymbolicNames = []string{
	"", "UCSCHAR", "IPRIVATE", "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
	"D8", "D9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
	"M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "COL2",
	"COL", "DOT", "PERCENT", "HYPHEN", "TILDE", "USCORE", "EXCL", "DOLLAR",
	"AMP", "SQUOTE", "OPAREN", "CPAREN", "STAR", "PLUS", "COMMA", "SCOL", "EQUALS",
	"FSLASH2", "FSLASH", "QMARK", "HASH", "OBRACK", "CBRACK", "AT",
}

var lexerRuleNames = []string{
	"UCSCHAR", "IPRIVATE", "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7",
	"D8", "D9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L",
	"M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "COL2",
	"COL", "DOT", "PERCENT", "HYPHEN", "TILDE", "USCORE", "EXCL", "DOLLAR",
	"AMP", "SQUOTE", "OPAREN", "CPAREN", "STAR", "PLUS", "COMMA", "SCOL", "EQUALS",
	"FSLASH2", "FSLASH", "QMARK", "HASH", "OBRACK", "CBRACK", "AT",
}

type IRILexer struct {
	*antlr.BaseLexer
	channelNames []string
	modeNames    []string
	// TODO: EOF string
}

// NewIRILexer produces a new lexer instance for the optional input antlr.CharStream.
//
// The *IRILexer instance produced may be reused by calling the SetInputStream method.
// The initial lexer configuration is expensive to construct, and the object is not thread-safe;
// however, if used within a Golang sync.Pool, the construction cost amortizes well and the
// objects can be used in a thread-safe manner.
func NewIRILexer(input antlr.CharStream) *IRILexer {
	l := new(IRILexer)
	lexerDeserializer := antlr.NewATNDeserializer(nil)
	lexerAtn := lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
	lexerDecisionToDFA := make([]*antlr.DFA, len(lexerAtn.DecisionToState))
	for index, ds := range lexerAtn.DecisionToState {
		lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
	}
	l.BaseLexer = antlr.NewBaseLexer(input)
	l.Interpreter = antlr.NewLexerATNSimulator(l, lexerAtn, lexerDecisionToDFA, antlr.NewPredictionContextCache())

	l.channelNames = lexerChannelNames
	l.modeNames = lexerModeNames
	l.RuleNames = lexerRuleNames
	l.LiteralNames = lexerLiteralNames
	l.SymbolicNames = lexerSymbolicNames
	l.GrammarFileName = "IRI.g4"
	// TODO: l.EOF = antlr.TokenEOF

	return l
}

// IRILexer tokens.
const (
	IRILexerUCSCHAR  = 1
	IRILexerIPRIVATE = 2
	IRILexerD0       = 3
	IRILexerD1       = 4
	IRILexerD2       = 5
	IRILexerD3       = 6
	IRILexerD4       = 7
	IRILexerD5       = 8
	IRILexerD6       = 9
	IRILexerD7       = 10
	IRILexerD8       = 11
	IRILexerD9       = 12
	IRILexerA        = 13
	IRILexerB        = 14
	IRILexerC        = 15
	IRILexerD        = 16
	IRILexerE        = 17
	IRILexerF        = 18
	IRILexerG        = 19
	IRILexerH        = 20
	IRILexerI        = 21
	IRILexerJ        = 22
	IRILexerK        = 23
	IRILexerL        = 24
	IRILexerM        = 25
	IRILexerN        = 26
	IRILexerO        = 27
	IRILexerP        = 28
	IRILexerQ        = 29
	IRILexerR        = 30
	IRILexerS        = 31
	IRILexerT        = 32
	IRILexerU        = 33
	IRILexerV        = 34
	IRILexerW        = 35
	IRILexerX        = 36
	IRILexerY        = 37
	IRILexerZ        = 38
	IRILexerCOL2     = 39
	IRILexerCOL      = 40
	IRILexerDOT      = 41
	IRILexerPERCENT  = 42
	IRILexerHYPHEN   = 43
	IRILexerTILDE    = 44
	IRILexerUSCORE   = 45
	IRILexerEXCL     = 46
	IRILexerDOLLAR   = 47
	IRILexerAMP      = 48
	IRILexerSQUOTE   = 49
	IRILexerOPAREN   = 50
	IRILexerCPAREN   = 51
	IRILexerSTAR     = 52
	IRILexerPLUS     = 53
	IRILexerCOMMA    = 54
	IRILexerSCOL     = 55
	IRILexerEQUALS   = 56
	IRILexerFSLASH2  = 57
	IRILexerFSLASH   = 58
	IRILexerQMARK    = 59
	IRILexerHASH     = 60
	IRILexerOBRACK   = 61
	IRILexerCBRACK   = 62
	IRILexerAT       = 63
)
