Extended Berkeley Packet Filter (eBPF) assembler and virtual machine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

450 lines
25 KiB

// Code generated from internal/parser/Assembler.g4 by ANTLR 4.7.2. DO NOT EDIT.
package parser
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, 74, 646,
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, 4, 65,
9, 65, 4, 66, 9, 66, 4, 67, 9, 67, 4, 68, 9, 68, 4, 69, 9, 69, 4, 70, 9,
70, 4, 71, 9, 71, 4, 72, 9, 72, 4, 73, 9, 73, 4, 74, 9, 74, 4, 75, 9, 75,
4, 76, 9, 76, 4, 77, 9, 77, 4, 78, 9, 78, 4, 79, 9, 79, 4, 80, 9, 80, 4,
81, 9, 81, 4, 82, 9, 82, 4, 83, 9, 83, 4, 84, 9, 84, 4, 85, 9, 85, 4, 86,
9, 86, 4, 87, 9, 87, 4, 88, 9, 88, 4, 89, 9, 89, 4, 90, 9, 90, 4, 91, 9,
91, 4, 92, 9, 92, 4, 93, 9, 93, 4, 94, 9, 94, 4, 95, 9, 95, 4, 96, 9, 96,
4, 97, 9, 97, 4, 98, 9, 98, 4, 99, 9, 99, 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, 8, 3, 8, 3, 9,
3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11,
3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3,
14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17,
3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 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, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 23, 3,
23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 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, 27, 3, 28, 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, 30, 3,
30, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 32, 3, 32,
3, 32, 3, 32, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 33, 3, 34, 3,
34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34, 3, 34,
3, 34, 3, 34, 3, 34, 5, 34, 357, 10, 34, 3, 35, 3, 35, 3, 35, 3, 35, 3,
35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35, 3, 35,
5, 35, 374, 10, 35, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37, 3, 37, 3, 37, 3,
38, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40,
3, 40, 3, 41, 3, 41, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 42, 3,
43, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 44, 3, 44, 3, 45, 3, 45,
3, 45, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3,
47, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49,
3, 49, 3, 49, 3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 51, 3, 51, 3, 51, 3,
51, 3, 51, 3, 51, 3, 51, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52,
3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 3, 54, 3,
54, 3, 54, 3, 54, 3, 54, 3, 54, 3, 55, 3, 55, 3, 55, 3, 55, 3, 55, 3, 56,
3, 56, 3, 56, 3, 56, 3, 56, 3, 57, 3, 57, 3, 57, 3, 57, 3, 57, 3, 58, 3,
58, 3, 58, 3, 58, 3, 58, 3, 58, 3, 59, 3, 59, 3, 59, 3, 59, 3, 60, 3, 60,
3, 60, 3, 60, 3, 61, 3, 61, 3, 61, 3, 61, 3, 62, 3, 62, 3, 62, 3, 62, 3,
62, 3, 63, 3, 63, 3, 63, 3, 63, 3, 63, 3, 64, 3, 64, 3, 64, 3, 64, 3, 64,
3, 65, 3, 65, 3, 65, 3, 65, 3, 65, 3, 66, 3, 66, 3, 66, 3, 66, 3, 66, 3,
66, 3, 67, 3, 67, 3, 67, 3, 67, 6, 67, 535, 10, 67, 13, 67, 14, 67, 536,
3, 67, 3, 67, 3, 67, 3, 67, 6, 67, 543, 10, 67, 13, 67, 14, 67, 544, 3,
67, 5, 67, 548, 10, 67, 3, 67, 6, 67, 551, 10, 67, 13, 67, 14, 67, 552,
5, 67, 555, 10, 67, 3, 68, 3, 68, 7, 68, 559, 10, 68, 12, 68, 14, 68, 562,
11, 68, 3, 68, 3, 68, 3, 69, 6, 69, 567, 10, 69, 13, 69, 14, 69, 568, 3,
70, 6, 70, 572, 10, 70, 13, 70, 14, 70, 573, 3, 70, 3, 70, 3, 71, 3, 71,
3, 71, 3, 71, 3, 71, 3, 71, 3, 71, 5, 71, 585, 10, 71, 3, 72, 3, 72, 3,
72, 3, 72, 3, 73, 3, 73, 3, 73, 3, 73, 3, 74, 3, 74, 3, 75, 3, 75, 3, 76,
3, 76, 3, 77, 3, 77, 3, 78, 3, 78, 3, 79, 3, 79, 3, 80, 3, 80, 3, 81, 3,
81, 3, 82, 3, 82, 3, 83, 3, 83, 3, 84, 3, 84, 3, 85, 3, 85, 3, 86, 3, 86,
3, 87, 3, 87, 3, 88, 3, 88, 3, 89, 3, 89, 3, 90, 3, 90, 3, 91, 3, 91, 3,
92, 3, 92, 3, 93, 3, 93, 3, 94, 3, 94, 3, 95, 3, 95, 3, 96, 3, 96, 3, 97,
3, 97, 3, 98, 3, 98, 3, 99, 3, 99, 2, 2, 100, 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, 129, 66, 131, 67, 133, 68,
135, 69, 137, 70, 139, 71, 141, 72, 143, 73, 145, 74, 147, 2, 149, 2, 151,
2, 153, 2, 155, 2, 157, 2, 159, 2, 161, 2, 163, 2, 165, 2, 167, 2, 169,
2, 171, 2, 173, 2, 175, 2, 177, 2, 179, 2, 181, 2, 183, 2, 185, 2, 187,
2, 189, 2, 191, 2, 193, 2, 195, 2, 197, 2, 3, 2, 34, 3, 2, 50, 51, 5, 2,
50, 59, 67, 72, 99, 104, 3, 2, 50, 59, 4, 2, 12, 12, 15, 15, 6, 2, 48,
48, 67, 92, 97, 97, 99, 124, 5, 2, 11, 12, 15, 15, 34, 34, 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, 2, 633, 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, 63, 3, 2, 2, 2, 2, 65, 3, 2, 2, 2, 2, 67, 3, 2,
2, 2, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2, 2, 73, 3, 2, 2, 2, 2, 75, 3,
2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2, 2, 2, 81, 3, 2, 2, 2, 2, 83,
3, 2, 2, 2, 2, 85, 3, 2, 2, 2, 2, 87, 3, 2, 2, 2, 2, 89, 3, 2, 2, 2, 2,
91, 3, 2, 2, 2, 2, 93, 3, 2, 2, 2, 2, 95, 3, 2, 2, 2, 2, 97, 3, 2, 2, 2,
2, 99, 3, 2, 2, 2, 2, 101, 3, 2, 2, 2, 2, 103, 3, 2, 2, 2, 2, 105, 3, 2,
2, 2, 2, 107, 3, 2, 2, 2, 2, 109, 3, 2, 2, 2, 2, 111, 3, 2, 2, 2, 2, 113,
3, 2, 2, 2, 2, 115, 3, 2, 2, 2, 2, 117, 3, 2, 2, 2, 2, 119, 3, 2, 2, 2,
2, 121, 3, 2, 2, 2, 2, 123, 3, 2, 2, 2, 2, 125, 3, 2, 2, 2, 2, 127, 3,
2, 2, 2, 2, 129, 3, 2, 2, 2, 2, 131, 3, 2, 2, 2, 2, 133, 3, 2, 2, 2, 2,
135, 3, 2, 2, 2, 2, 137, 3, 2, 2, 2, 2, 139, 3, 2, 2, 2, 2, 141, 3, 2,
2, 2, 2, 143, 3, 2, 2, 2, 2, 145, 3, 2, 2, 2, 3, 199, 3, 2, 2, 2, 5, 201,
3, 2, 2, 2, 7, 203, 3, 2, 2, 2, 9, 205, 3, 2, 2, 2, 11, 207, 3, 2, 2, 2,
13, 209, 3, 2, 2, 2, 15, 211, 3, 2, 2, 2, 17, 215, 3, 2, 2, 2, 19, 219,
3, 2, 2, 2, 21, 223, 3, 2, 2, 2, 23, 227, 3, 2, 2, 2, 25, 231, 3, 2, 2,
2, 27, 235, 3, 2, 2, 2, 29, 238, 3, 2, 2, 2, 31, 242, 3, 2, 2, 2, 33, 246,
3, 2, 2, 2, 35, 250, 3, 2, 2, 2, 37, 254, 3, 2, 2, 2, 39, 258, 3, 2, 2,
2, 41, 263, 3, 2, 2, 2, 43, 269, 3, 2, 2, 2, 45, 275, 3, 2, 2, 2, 47, 281,
3, 2, 2, 2, 49, 287, 3, 2, 2, 2, 51, 293, 3, 2, 2, 2, 53, 299, 3, 2, 2,
2, 55, 304, 3, 2, 2, 2, 57, 310, 3, 2, 2, 2, 59, 316, 3, 2, 2, 2, 61, 322,
3, 2, 2, 2, 63, 328, 3, 2, 2, 2, 65, 334, 3, 2, 2, 2, 67, 356, 3, 2, 2,
2, 69, 373, 3, 2, 2, 2, 71, 375, 3, 2, 2, 2, 73, 378, 3, 2, 2, 2, 75, 382,
3, 2, 2, 2, 77, 386, 3, 2, 2, 2, 79, 390, 3, 2, 2, 2, 81, 394, 3, 2, 2,
2, 83, 398, 3, 2, 2, 2, 85, 403, 3, 2, 2, 2, 87, 407, 3, 2, 2, 2, 89, 412,
3, 2, 2, 2, 91, 417, 3, 2, 2, 2, 93, 422, 3, 2, 2, 2, 95, 427, 3, 2, 2,
2, 97, 432, 3, 2, 2, 2, 99, 437, 3, 2, 2, 2, 101, 442, 3, 2, 2, 2, 103,
449, 3, 2, 2, 2, 105, 456, 3, 2, 2, 2, 107, 463, 3, 2, 2, 2, 109, 471,
3, 2, 2, 2, 111, 476, 3, 2, 2, 2, 113, 481, 3, 2, 2, 2, 115, 486, 3, 2,
2, 2, 117, 492, 3, 2, 2, 2, 119, 496, 3, 2, 2, 2, 121, 500, 3, 2, 2, 2,
123, 504, 3, 2, 2, 2, 125, 509, 3, 2, 2, 2, 127, 514, 3, 2, 2, 2, 129,
519, 3, 2, 2, 2, 131, 524, 3, 2, 2, 2, 133, 554, 3, 2, 2, 2, 135, 556,
3, 2, 2, 2, 137, 566, 3, 2, 2, 2, 139, 571, 3, 2, 2, 2, 141, 584, 3, 2,
2, 2, 143, 586, 3, 2, 2, 2, 145, 590, 3, 2, 2, 2, 147, 594, 3, 2, 2, 2,
149, 596, 3, 2, 2, 2, 151, 598, 3, 2, 2, 2, 153, 600, 3, 2, 2, 2, 155,
602, 3, 2, 2, 2, 157, 604, 3, 2, 2, 2, 159, 606, 3, 2, 2, 2, 161, 608,
3, 2, 2, 2, 163, 610, 3, 2, 2, 2, 165, 612, 3, 2, 2, 2, 167, 614, 3, 2,
2, 2, 169, 616, 3, 2, 2, 2, 171, 618, 3, 2, 2, 2, 173, 620, 3, 2, 2, 2,
175, 622, 3, 2, 2, 2, 177, 624, 3, 2, 2, 2, 179, 626, 3, 2, 2, 2, 181,
628, 3, 2, 2, 2, 183, 630, 3, 2, 2, 2, 185, 632, 3, 2, 2, 2, 187, 634,
3, 2, 2, 2, 189, 636, 3, 2, 2, 2, 191, 638, 3, 2, 2, 2, 193, 640, 3, 2,
2, 2, 195, 642, 3, 2, 2, 2, 197, 644, 3, 2, 2, 2, 199, 200, 7, 60, 2, 2,
200, 4, 3, 2, 2, 2, 201, 202, 7, 46, 2, 2, 202, 6, 3, 2, 2, 2, 203, 204,
7, 45, 2, 2, 204, 8, 3, 2, 2, 2, 205, 206, 7, 93, 2, 2, 206, 10, 3, 2,
2, 2, 207, 208, 7, 95, 2, 2, 208, 12, 3, 2, 2, 2, 209, 210, 7, 37, 2, 2,
210, 14, 3, 2, 2, 2, 211, 212, 5, 147, 74, 2, 212, 213, 5, 153, 77, 2,
213, 214, 5, 153, 77, 2, 214, 16, 3, 2, 2, 2, 215, 216, 5, 183, 92, 2,
216, 217, 5, 187, 94, 2, 217, 218, 5, 149, 75, 2, 218, 18, 3, 2, 2, 2,
219, 220, 5, 171, 86, 2, 220, 221, 5, 187, 94, 2, 221, 222, 5, 169, 85,
2, 222, 20, 3, 2, 2, 2, 223, 224, 5, 153, 77, 2, 224, 225, 5, 163, 82,
2, 225, 226, 5, 189, 95, 2, 226, 22, 3, 2, 2, 2, 227, 228, 5, 171, 86,
2, 228, 229, 5, 175, 88, 2, 229, 230, 5, 153, 77, 2, 230, 24, 3, 2, 2,
2, 231, 232, 5, 147, 74, 2, 232, 233, 5, 173, 87, 2, 233, 234, 5, 153,
77, 2, 234, 26, 3, 2, 2, 2, 235, 236, 5, 175, 88, 2, 236, 237, 5, 181,
91, 2, 237, 28, 3, 2, 2, 2, 238, 239, 5, 173, 87, 2, 239, 240, 5, 155,
78, 2, 240, 241, 5, 159, 80, 2, 241, 30, 3, 2, 2, 2, 242, 243, 5, 193,
97, 2, 243, 244, 5, 175, 88, 2, 244, 245, 5, 181, 91, 2, 245, 32, 3, 2,
2, 2, 246, 247, 5, 171, 86, 2, 247, 248, 5, 175, 88, 2, 248, 249, 5, 189,
95, 2, 249, 34, 3, 2, 2, 2, 250, 251, 5, 169, 85, 2, 251, 252, 5, 183,
92, 2, 252, 253, 5, 161, 81, 2, 253, 36, 3, 2, 2, 2, 254, 255, 5, 181,
91, 2, 255, 256, 5, 183, 92, 2, 256, 257, 5, 161, 81, 2, 257, 38, 3, 2,
2, 2, 258, 259, 5, 147, 74, 2, 259, 260, 5, 181, 91, 2, 260, 261, 5, 183,
92, 2, 261, 262, 5, 161, 81, 2, 262, 40, 3, 2, 2, 2, 263, 264, 5, 147,
74, 2, 264, 265, 5, 153, 77, 2, 265, 266, 5, 153, 77, 2, 266, 267, 7, 53,
2, 2, 267, 268, 7, 52, 2, 2, 268, 42, 3, 2, 2, 2, 269, 270, 5, 183, 92,
2, 270, 271, 5, 187, 94, 2, 271, 272, 5, 149, 75, 2, 272, 273, 7, 53, 2,
2, 273, 274, 7, 52, 2, 2, 274, 44, 3, 2, 2, 2, 275, 276, 5, 171, 86, 2,
276, 277, 5, 187, 94, 2, 277, 278, 5, 169, 85, 2, 278, 279, 7, 53, 2, 2,
279, 280, 7, 52, 2, 2, 280, 46, 3, 2, 2, 2, 281, 282, 5, 153, 77, 2, 282,
283, 5, 163, 82, 2, 283, 284, 5, 189, 95, 2, 284, 285, 7, 53, 2, 2, 285,
286, 7, 52, 2, 2, 286, 48, 3, 2, 2, 2, 287, 288, 5, 171, 86, 2, 288, 289,
5, 175, 88, 2, 289, 290, 5, 153, 77, 2, 290, 291, 7, 53, 2, 2, 291, 292,
7, 52, 2, 2, 292, 50, 3, 2, 2, 2, 293, 294, 5, 147, 74, 2, 294, 295, 5,
173, 87, 2, 295, 296, 5, 153, 77, 2, 296, 297, 7, 53, 2, 2, 297, 298, 7,
52, 2, 2, 298, 52, 3, 2, 2, 2, 299, 300, 5, 175, 88, 2, 300, 301, 5, 181,
91, 2, 301, 302, 7, 53, 2, 2, 302, 303, 7, 52, 2, 2, 303, 54, 3, 2, 2,
2, 304, 305, 5, 173, 87, 2, 305, 306, 5, 155, 78, 2, 306, 307, 5, 159,
80, 2, 307, 308, 7, 53, 2, 2, 308, 309, 7, 52, 2, 2, 309, 56, 3, 2, 2,
2, 310, 311, 5, 193, 97, 2, 311, 312, 5, 175, 88, 2, 312, 313, 5, 181,
91, 2, 313, 314, 7, 53, 2, 2, 314, 315, 7, 52, 2, 2, 315, 58, 3, 2, 2,
2, 316, 317, 5, 171, 86, 2, 317, 318, 5, 175, 88, 2, 318, 319, 5, 189,
95, 2, 319, 320, 7, 53, 2, 2, 320, 321, 7, 52, 2, 2, 321, 60, 3, 2, 2,
2, 322, 323, 5, 169, 85, 2, 323, 324, 5, 183, 92, 2, 324, 325, 5, 161,
81, 2, 325, 326, 7, 53, 2, 2, 326, 327, 7, 52, 2, 2, 327, 62, 3, 2, 2,
2, 328, 329, 5, 181, 91, 2, 329, 330, 5, 183, 92, 2, 330, 331, 5, 161,
81, 2, 331, 332, 7, 53, 2, 2, 332, 333, 7, 52, 2, 2, 333, 64, 3, 2, 2,
2, 334, 335, 5, 147, 74, 2, 335, 336, 5, 181, 91, 2, 336, 337, 5, 183,
92, 2, 337, 338, 5, 161, 81, 2, 338, 339, 7, 53, 2, 2, 339, 340, 7, 52,
2, 2, 340, 66, 3, 2, 2, 2, 341, 342, 5, 169, 85, 2, 342, 343, 5, 155, 78,
2, 343, 344, 7, 51, 2, 2, 344, 345, 7, 56, 2, 2, 345, 357, 3, 2, 2, 2,
346, 347, 5, 169, 85, 2, 347, 348, 5, 155, 78, 2, 348, 349, 7, 53, 2, 2,
349, 350, 7, 52, 2, 2, 350, 357, 3, 2, 2, 2, 351, 352, 5, 169, 85, 2, 352,
353, 5, 155, 78, 2, 353, 354, 7, 56, 2, 2, 354, 355, 7, 54, 2, 2, 355,
357, 3, 2, 2, 2, 356, 341, 3, 2, 2, 2, 356, 346, 3, 2, 2, 2, 356, 351,
3, 2, 2, 2, 357, 68, 3, 2, 2, 2, 358, 359, 5, 149, 75, 2, 359, 360, 5,
155, 78, 2, 360, 361, 7, 51, 2, 2, 361, 362, 7, 56, 2, 2, 362, 374, 3,
2, 2, 2, 363, 364, 5, 149, 75, 2, 364, 365, 5, 155, 78, 2, 365, 366, 7,
53, 2, 2, 366, 367, 7, 52, 2, 2, 367, 374, 3, 2, 2, 2, 368, 369, 5, 149,
75, 2, 369, 370, 5, 155, 78, 2, 370, 371, 7, 56, 2, 2, 371, 372, 7, 54,
2, 2, 372, 374, 3, 2, 2, 2, 373, 358, 3, 2, 2, 2, 373, 363, 3, 2, 2, 2,
373, 368, 3, 2, 2, 2, 374, 70, 3, 2, 2, 2, 375, 376, 5, 165, 83, 2, 376,
377, 5, 147, 74, 2, 377, 72, 3, 2, 2, 2, 378, 379, 5, 165, 83, 2, 379,
380, 5, 155, 78, 2, 380, 381, 5, 179, 90, 2, 381, 74, 3, 2, 2, 2, 382,
383, 5, 165, 83, 2, 383, 384, 5, 159, 80, 2, 384, 385, 5, 185, 93, 2, 385,
76, 3, 2, 2, 2, 386, 387, 5, 165, 83, 2, 387, 388, 5, 159, 80, 2, 388,
389, 5, 155, 78, 2, 389, 78, 3, 2, 2, 2, 390, 391, 5, 165, 83, 2, 391,
392, 5, 169, 85, 2, 392, 393, 5, 185, 93, 2, 393, 80, 3, 2, 2, 2, 394,
395, 5, 165, 83, 2, 395, 396, 5, 169, 85, 2, 396, 397, 5, 155, 78, 2, 397,
82, 3, 2, 2, 2, 398, 399, 5, 165, 83, 2, 399, 400, 5, 183, 92, 2, 400,
401, 5, 155, 78, 2, 401, 402, 5, 185, 93, 2, 402, 84, 3, 2, 2, 2, 403,
404, 5, 165, 83, 2, 404, 405, 5, 173, 87, 2, 405, 406, 5, 155, 78, 2, 406,
86, 3, 2, 2, 2, 407, 408, 5, 165, 83, 2, 408, 409, 5, 183, 92, 2, 409,
410, 5, 159, 80, 2, 410, 411, 5, 185, 93, 2, 411, 88, 3, 2, 2, 2, 412,
413, 5, 165, 83, 2, 413, 414, 5, 183, 92, 2, 414, 415, 5, 159, 80, 2, 415,
416, 5, 155, 78, 2, 416, 90, 3, 2, 2, 2, 417, 418, 5, 165, 83, 2, 418,
419, 5, 183, 92, 2, 419, 420, 5, 169, 85, 2, 420, 421, 5, 185, 93, 2, 421,
92, 3, 2, 2, 2, 422, 423, 5, 165, 83, 2, 423, 424, 5, 183, 92, 2, 424,
425, 5, 169, 85, 2, 425, 426, 5, 155, 78, 2, 426, 94, 3, 2, 2, 2, 427,
428, 5, 151, 76, 2, 428, 429, 5, 147, 74, 2, 429, 430, 5, 169, 85, 2, 430,
431, 5, 169, 85, 2, 431, 96, 3, 2, 2, 2, 432, 433, 5, 155, 78, 2, 433,
434, 5, 193, 97, 2, 434, 435, 5, 163, 82, 2, 435, 436, 5, 185, 93, 2, 436,
98, 3, 2, 2, 2, 437, 438, 5, 169, 85, 2, 438, 439, 5, 153, 77, 2, 439,
440, 5, 153, 77, 2, 440, 441, 5, 191, 96, 2, 441, 100, 3, 2, 2, 2, 442,
443, 5, 169, 85, 2, 443, 444, 5, 153, 77, 2, 444, 445, 5, 147, 74, 2, 445,
446, 5, 149, 75, 2, 446, 447, 5, 183, 92, 2, 447, 448, 5, 191, 96, 2, 448,
102, 3, 2, 2, 2, 449, 450, 5, 169, 85, 2, 450, 451, 5, 153, 77, 2, 451,
452, 5, 147, 74, 2, 452, 453, 5, 149, 75, 2, 453, 454, 5, 183, 92, 2, 454,
455, 5, 161, 81, 2, 455, 104, 3, 2, 2, 2, 456, 457, 5, 169, 85, 2, 457,
458, 5, 153, 77, 2, 458, 459, 5, 147, 74, 2, 459, 460, 5, 149, 75, 2, 460,
461, 5, 183, 92, 2, 461, 462, 5, 149, 75, 2, 462, 106, 3, 2, 2, 2, 463,
464, 5, 169, 85, 2, 464, 465, 5, 153, 77, 2, 465, 466, 5, 147, 74, 2, 466,
467, 5, 149, 75, 2, 467, 468, 5, 183, 92, 2, 468, 469, 5, 153, 77, 2, 469,
470, 5, 191, 96, 2, 470, 108, 3, 2, 2, 2, 471, 472, 5, 169, 85, 2, 472,
473, 5, 153, 77, 2, 473, 474, 5, 193, 97, 2, 474, 475, 5, 191, 96, 2, 475,
110, 3, 2, 2, 2, 476, 477, 5, 169, 85, 2, 477, 478, 5, 153, 77, 2, 478,
479, 5, 193, 97, 2, 479, 480, 5, 161, 81, 2, 480, 112, 3, 2, 2, 2, 481,
482, 5, 169, 85, 2, 482, 483, 5, 153, 77, 2, 483, 484, 5, 193, 97, 2, 484,
485, 5, 149, 75, 2, 485, 114, 3, 2, 2, 2, 486, 487, 5, 169, 85, 2, 487,
488, 5, 153, 77, 2, 488, 489, 5, 193, 97, 2, 489, 490, 5, 153, 77, 2, 490,
491, 5, 191, 96, 2, 491, 116, 3, 2, 2, 2, 492, 493, 5, 183, 92, 2, 493,
494, 5, 185, 93, 2, 494, 495, 5, 191, 96, 2, 495, 118, 3, 2, 2, 2, 496,
497, 5, 183, 92, 2, 497, 498, 5, 185, 93, 2, 498, 499, 5, 161, 81, 2, 499,
120, 3, 2, 2, 2, 500, 501, 5, 183, 92, 2, 501, 502, 5, 185, 93, 2, 502,
503, 5, 149, 75, 2, 503, 122, 3, 2, 2, 2, 504, 505, 5, 183, 92, 2, 505,
506, 5, 185, 93, 2, 506, 507, 5, 153, 77, 2, 507, 508, 5, 191, 96, 2, 508,
124, 3, 2, 2, 2, 509, 510, 5, 183, 92, 2, 510, 511, 5, 185, 93, 2, 511,
512, 5, 193, 97, 2, 512, 513, 5, 191, 96, 2, 513, 126, 3, 2, 2, 2, 514,
515, 5, 183, 92, 2, 515, 516, 5, 185, 93, 2, 516, 517, 5, 193, 97, 2, 517,
518, 5, 161, 81, 2, 518, 128, 3, 2, 2, 2, 519, 520, 5, 183, 92, 2, 520,
521, 5, 185, 93, 2, 521, 522, 5, 193, 97, 2, 522, 523, 5, 149, 75, 2, 523,
130, 3, 2, 2, 2, 524, 525, 5, 183, 92, 2, 525, 526, 5, 185, 93, 2, 526,
527, 5, 193, 97, 2, 527, 528, 5, 153, 77, 2, 528, 529, 5, 191, 96, 2, 529,
132, 3, 2, 2, 2, 530, 531, 7, 50, 2, 2, 531, 532, 7, 100, 2, 2, 532, 534,
3, 2, 2, 2, 533, 535, 9, 2, 2, 2, 534, 533, 3, 2, 2, 2, 535, 536, 3, 2,
2, 2, 536, 534, 3, 2, 2, 2, 536, 537, 3, 2, 2, 2, 537, 555, 3, 2, 2, 2,
538, 539, 7, 50, 2, 2, 539, 540, 7, 122, 2, 2, 540, 542, 3, 2, 2, 2, 541,
543, 9, 3, 2, 2, 542, 541, 3, 2, 2, 2, 543, 544, 3, 2, 2, 2, 544, 542,
3, 2, 2, 2, 544, 545, 3, 2, 2, 2, 545, 555, 3, 2, 2, 2, 546, 548, 7, 47,
2, 2, 547, 546, 3, 2, 2, 2, 547, 548, 3, 2, 2, 2, 548, 550, 3, 2, 2, 2,
549, 551, 9, 4, 2, 2, 550, 549, 3, 2, 2, 2, 551, 552, 3, 2, 2, 2, 552,
550, 3, 2, 2, 2, 552, 553, 3, 2, 2, 2, 553, 555, 3, 2, 2, 2, 554, 530,
3, 2, 2, 2, 554, 538, 3, 2, 2, 2, 554, 547, 3, 2, 2, 2, 555, 134, 3, 2,
2, 2, 556, 560, 7, 61, 2, 2, 557, 559, 10, 5, 2, 2, 558, 557, 3, 2, 2,
2, 559, 562, 3, 2, 2, 2, 560, 558, 3, 2, 2, 2, 560, 561, 3, 2, 2, 2, 561,
563, 3, 2, 2, 2, 562, 560, 3, 2, 2, 2, 563, 564, 8, 68, 2, 2, 564, 136,
3, 2, 2, 2, 565, 567, 9, 6, 2, 2, 566, 565, 3, 2, 2, 2, 567, 568, 3, 2,
2, 2, 568, 566, 3, 2, 2, 2, 568, 569, 3, 2, 2, 2, 569, 138, 3, 2, 2, 2,
570, 572, 9, 7, 2, 2, 571, 570, 3, 2, 2, 2, 572, 573, 3, 2, 2, 2, 573,
571, 3, 2, 2, 2, 573, 574, 3, 2, 2, 2, 574, 575, 3, 2, 2, 2, 575, 576,
8, 70, 2, 2, 576, 140, 3, 2, 2, 2, 577, 578, 5, 181, 91, 2, 578, 579, 9,
4, 2, 2, 579, 585, 3, 2, 2, 2, 580, 581, 5, 181, 91, 2, 581, 582, 7, 51,
2, 2, 582, 583, 7, 50, 2, 2, 583, 585, 3, 2, 2, 2, 584, 577, 3, 2, 2, 2,
584, 580, 3, 2, 2, 2, 585, 142, 3, 2, 2, 2, 586, 587, 5, 181, 91, 2, 587,
588, 5, 147, 74, 2, 588, 589, 5, 193, 97, 2, 589, 144, 3, 2, 2, 2, 590,
591, 5, 181, 91, 2, 591, 592, 5, 157, 79, 2, 592, 593, 5, 177, 89, 2, 593,
146, 3, 2, 2, 2, 594, 595, 9, 8, 2, 2, 595, 148, 3, 2, 2, 2, 596, 597,
9, 9, 2, 2, 597, 150, 3, 2, 2, 2, 598, 599, 9, 10, 2, 2, 599, 152, 3, 2,
2, 2, 600, 601, 9, 11, 2, 2, 601, 154, 3, 2, 2, 2, 602, 603, 9, 12, 2,
2, 603, 156, 3, 2, 2, 2, 604, 605, 9, 13, 2, 2, 605, 158, 3, 2, 2, 2, 606,
607, 9, 14, 2, 2, 607, 160, 3, 2, 2, 2, 608, 609, 9, 15, 2, 2, 609, 162,
3, 2, 2, 2, 610, 611, 9, 16, 2, 2, 611, 164, 3, 2, 2, 2, 612, 613, 9, 17,
2, 2, 613, 166, 3, 2, 2, 2, 614, 615, 9, 18, 2, 2, 615, 168, 3, 2, 2, 2,
616, 617, 9, 19, 2, 2, 617, 170, 3, 2, 2, 2, 618, 619, 9, 20, 2, 2, 619,
172, 3, 2, 2, 2, 620, 621, 9, 21, 2, 2, 621, 174, 3, 2, 2, 2, 622, 623,
9, 22, 2, 2, 623, 176, 3, 2, 2, 2, 624, 625, 9, 23, 2, 2, 625, 178, 3,
2, 2, 2, 626, 627, 9, 24, 2, 2, 627, 180, 3, 2, 2, 2, 628, 629, 9, 25,
2, 2, 629, 182, 3, 2, 2, 2, 630, 631, 9, 26, 2, 2, 631, 184, 3, 2, 2, 2,
632, 633, 9, 27, 2, 2, 633, 186, 3, 2, 2, 2, 634, 635, 9, 28, 2, 2, 635,
188, 3, 2, 2, 2, 636, 637, 9, 29, 2, 2, 637, 190, 3, 2, 2, 2, 638, 639,
9, 30, 2, 2, 639, 192, 3, 2, 2, 2, 640, 641, 9, 31, 2, 2, 641, 194, 3,
2, 2, 2, 642, 643, 9, 32, 2, 2, 643, 196, 3, 2, 2, 2, 644, 645, 9, 33,
2, 2, 645, 198, 3, 2, 2, 2, 14, 2, 356, 373, 536, 544, 547, 552, 554, 560,
568, 573, 584, 3, 8, 2, 2,
}
var lexerDeserializer = antlr.NewATNDeserializer(nil)
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
var lexerChannelNames = []string{
"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
}
var lexerModeNames = []string{
"DEFAULT_MODE",
}
var lexerLiteralNames = []string{
"", "':'", "','", "'+'", "'['", "']'", "'#'",
}
var lexerSymbolicNames = []string{
"", "", "", "", "", "", "", "ADD", "SUB", "MUL", "DIV", "MOD", "AND", "OR",
"NEG", "XOR", "MOV", "LSH", "RSH", "ARSH", "ADD32", "SUB32", "MUL32", "DIV32",
"MOD32", "AND32", "OR32", "NEG32", "XOR32", "MOV32", "LSH32", "RSH32",
"ARSH32", "LE", "BE", "JA", "JEQ", "JGT", "JGE", "JLT", "JLE", "JSET",
"JNE", "JSGT", "JSGE", "JSLT", "JSLE", "CALL", "EXIT", "LDDW", "LDABSW",
"LDABSH", "LDABSB", "LDABSDW", "LDXW", "LDXH", "LDXB", "LDXDW", "STW",
"STH", "STB", "STDW", "STXW", "STXH", "STXB", "STXDW", "NUMBER", "COMMENT",
"IDENTIFIER", "WHITESPACE", "REGISTER", "RAX", "RFP",
}
var lexerRuleNames = []string{
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "ADD", "SUB", "MUL", "DIV",
"MOD", "AND", "OR", "NEG", "XOR", "MOV", "LSH", "RSH", "ARSH", "ADD32",
"SUB32", "MUL32", "DIV32", "MOD32", "AND32", "OR32", "NEG32", "XOR32",
"MOV32", "LSH32", "RSH32", "ARSH32", "LE", "BE", "JA", "JEQ", "JGT", "JGE",
"JLT", "JLE", "JSET", "JNE", "JSGT", "JSGE", "JSLT", "JSLE", "CALL", "EXIT",
"LDDW", "LDABSW", "LDABSH", "LDABSB", "LDABSDW", "LDXW", "LDXH", "LDXB",
"LDXDW", "STW", "STH", "STB", "STDW", "STXW", "STXH", "STXB", "STXDW",
"NUMBER", "COMMENT", "IDENTIFIER", "WHITESPACE", "REGISTER", "RAX", "RFP",
"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",
}
type AssemblerLexer struct {
*antlr.BaseLexer
channelNames []string
modeNames []string
// TODO: EOF string
}
var lexerDecisionToDFA = make([]*antlr.DFA, len(lexerAtn.DecisionToState))
func init() {
for index, ds := range lexerAtn.DecisionToState {
lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
}
}
func NewAssemblerLexer(input antlr.CharStream) *AssemblerLexer {
l := new(AssemblerLexer)
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 = "Assembler.g4"
// TODO: l.EOF = antlr.TokenEOF
return l
}
// AssemblerLexer tokens.
const (
AssemblerLexerT__0 = 1
AssemblerLexerT__1 = 2
AssemblerLexerT__2 = 3
AssemblerLexerT__3 = 4
AssemblerLexerT__4 = 5
AssemblerLexerT__5 = 6
AssemblerLexerADD = 7
AssemblerLexerSUB = 8
AssemblerLexerMUL = 9
AssemblerLexerDIV = 10
AssemblerLexerMOD = 11
AssemblerLexerAND = 12
AssemblerLexerOR = 13
AssemblerLexerNEG = 14
AssemblerLexerXOR = 15
AssemblerLexerMOV = 16
AssemblerLexerLSH = 17
AssemblerLexerRSH = 18
AssemblerLexerARSH = 19
AssemblerLexerADD32 = 20
AssemblerLexerSUB32 = 21
AssemblerLexerMUL32 = 22
AssemblerLexerDIV32 = 23
AssemblerLexerMOD32 = 24
AssemblerLexerAND32 = 25
AssemblerLexerOR32 = 26
AssemblerLexerNEG32 = 27
AssemblerLexerXOR32 = 28
AssemblerLexerMOV32 = 29
AssemblerLexerLSH32 = 30
AssemblerLexerRSH32 = 31
AssemblerLexerARSH32 = 32
AssemblerLexerLE = 33
AssemblerLexerBE = 34
AssemblerLexerJA = 35
AssemblerLexerJEQ = 36
AssemblerLexerJGT = 37
AssemblerLexerJGE = 38
AssemblerLexerJLT = 39
AssemblerLexerJLE = 40
AssemblerLexerJSET = 41
AssemblerLexerJNE = 42
AssemblerLexerJSGT = 43
AssemblerLexerJSGE = 44
AssemblerLexerJSLT = 45
AssemblerLexerJSLE = 46
AssemblerLexerCALL = 47
AssemblerLexerEXIT = 48
AssemblerLexerLDDW = 49
AssemblerLexerLDABSW = 50
AssemblerLexerLDABSH = 51
AssemblerLexerLDABSB = 52
AssemblerLexerLDABSDW = 53
AssemblerLexerLDXW = 54
AssemblerLexerLDXH = 55
AssemblerLexerLDXB = 56
AssemblerLexerLDXDW = 57
AssemblerLexerSTW = 58
AssemblerLexerSTH = 59
AssemblerLexerSTB = 60
AssemblerLexerSTDW = 61
AssemblerLexerSTXW = 62
AssemblerLexerSTXH = 63
AssemblerLexerSTXB = 64
AssemblerLexerSTXDW = 65
AssemblerLexerNUMBER = 66
AssemblerLexerCOMMENT = 67
AssemblerLexerIDENTIFIER = 68
AssemblerLexerWHITESPACE = 69
AssemblerLexerREGISTER = 70
AssemblerLexerRAX = 71
AssemblerLexerRFP = 72
)