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

package pl0

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

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

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

var lexerLiteralNames = []string{
	"", "'.'", "'='", "','", "';'", "':='", "'?'", "'!'", "'#'", "'<'", "'<='",
	"'>'", "'>='", "'+'", "'-'", "'*'", "'/'", "'('", "')'",
}

var lexerSymbolicNames = []string{
	"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
	"", "WRITE", "WHILE", "DO", "IF", "THEN", "ODD", "BEGIN", "END", "CALL",
	"CONST", "VAR", "PROCEDURE", "STRING", "NUMBER", "WS",
}

var lexerRuleNames = []string{
	"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
	"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
	"T__17", "WRITE", "WHILE", "DO", "IF", "THEN", "ODD", "BEGIN", "END", "CALL",
	"CONST", "VAR", "PROCEDURE", "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", "STRING", "NUMBER", "WS",
}

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

// Newpl0Lexer produces a new lexer instance for the optional input antlr.CharStream.
//
// The *pl0Lexer 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 Newpl0Lexer(input antlr.CharStream) *pl0Lexer {
	l := new(pl0Lexer)
	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 = "pl0.g4"
	// TODO: l.EOF = antlr.TokenEOF

	return l
}

// pl0Lexer tokens.
const (
	pl0LexerT__0      = 1
	pl0LexerT__1      = 2
	pl0LexerT__2      = 3
	pl0LexerT__3      = 4
	pl0LexerT__4      = 5
	pl0LexerT__5      = 6
	pl0LexerT__6      = 7
	pl0LexerT__7      = 8
	pl0LexerT__8      = 9
	pl0LexerT__9      = 10
	pl0LexerT__10     = 11
	pl0LexerT__11     = 12
	pl0LexerT__12     = 13
	pl0LexerT__13     = 14
	pl0LexerT__14     = 15
	pl0LexerT__15     = 16
	pl0LexerT__16     = 17
	pl0LexerT__17     = 18
	pl0LexerWRITE     = 19
	pl0LexerWHILE     = 20
	pl0LexerDO        = 21
	pl0LexerIF        = 22
	pl0LexerTHEN      = 23
	pl0LexerODD       = 24
	pl0LexerBEGIN     = 25
	pl0LexerEND       = 26
	pl0LexerCALL      = 27
	pl0LexerCONST     = 28
	pl0LexerVAR       = 29
	pl0LexerPROCEDURE = 30
	pl0LexerSTRING    = 31
	pl0LexerNUMBER    = 32
	pl0LexerWS        = 33
)
