Capture comment before libvirt proc declaration
It contains annotations that we can use to insert streams in proc arguments.
This commit is contained in:
parent
81b15d4775
commit
5d8cdfc854
@ -259,12 +259,17 @@ func lexText(l *Lexer) stateFn {
|
||||
|
||||
// lexBlockComment is used when we find a comment marker '/*' in the input.
|
||||
func lexBlockComment(l *Lexer) stateFn {
|
||||
metadataComment := strings.HasPrefix(l.input[l.pos:], "/**")
|
||||
for {
|
||||
if strings.HasPrefix(l.input[l.pos:], "*/") {
|
||||
// Found the end. Advance past the '*/' and discard the comment body.
|
||||
l.next()
|
||||
l.next()
|
||||
l.ignore()
|
||||
if metadataComment {
|
||||
l.emit(METADATACOMMENT)
|
||||
} else {
|
||||
l.ignore()
|
||||
}
|
||||
return lexText
|
||||
}
|
||||
if l.next() == eof {
|
||||
|
@ -56,6 +56,7 @@ import (
|
||||
%token IDENTIFIER CONSTANT ERROR
|
||||
// RPCL additional tokens:
|
||||
%token PROGRAM VERSION
|
||||
%token METADATACOMMENT
|
||||
|
||||
%%
|
||||
|
||||
@ -99,6 +100,13 @@ enum_value
|
||||
return 1
|
||||
}
|
||||
}
|
||||
| METADATACOMMENT enum_value_ident '=' value {
|
||||
err := AddEnumVal($2.val, $4.val)
|
||||
if err != nil {
|
||||
yylex.Error(err.Error())
|
||||
return 1
|
||||
}
|
||||
}
|
||||
| enum_value_ident '=' value {
|
||||
err := AddEnumVal($1.val, $3.val)
|
||||
if err != nil {
|
||||
|
@ -59,6 +59,7 @@ const CONSTANT = 57366
|
||||
const ERROR = 57367
|
||||
const PROGRAM = 57368
|
||||
const VERSION = 57369
|
||||
const METADATACOMMENT = 57370
|
||||
|
||||
var yyToknames = [...]string{
|
||||
"$end",
|
||||
@ -88,6 +89,7 @@ var yyToknames = [...]string{
|
||||
"ERROR",
|
||||
"PROGRAM",
|
||||
"VERSION",
|
||||
"METADATACOMMENT",
|
||||
"';'",
|
||||
"'{'",
|
||||
"'}'",
|
||||
@ -108,7 +110,7 @@ const yyEofCode = 1
|
||||
const yyErrCode = 2
|
||||
const yyInitialStackSize = 16
|
||||
|
||||
//line sunrpc.y:259
|
||||
//line sunrpc.y:267
|
||||
|
||||
//line yacctab:1
|
||||
var yyExca = [...]int{
|
||||
@ -119,106 +121,107 @@ var yyExca = [...]int{
|
||||
|
||||
const yyPrivate = 57344
|
||||
|
||||
const yyLast = 148
|
||||
const yyLast = 153
|
||||
|
||||
var yyAct = [...]int{
|
||||
|
||||
84, 77, 36, 111, 103, 76, 61, 67, 32, 129,
|
||||
55, 126, 128, 100, 37, 117, 85, 86, 78, 63,
|
||||
98, 97, 73, 31, 74, 69, 131, 115, 71, 89,
|
||||
41, 94, 72, 62, 40, 10, 39, 43, 42, 13,
|
||||
30, 118, 14, 38, 107, 48, 49, 50, 51, 47,
|
||||
90, 11, 79, 64, 10, 70, 106, 96, 13, 54,
|
||||
12, 14, 52, 29, 134, 127, 119, 108, 91, 75,
|
||||
80, 15, 16, 110, 87, 88, 85, 86, 59, 60,
|
||||
63, 93, 83, 48, 49, 50, 51, 92, 95, 58,
|
||||
82, 27, 25, 23, 20, 102, 18, 99, 2, 105,
|
||||
101, 46, 8, 66, 45, 7, 109, 44, 4, 104,
|
||||
113, 105, 114, 116, 120, 28, 122, 81, 8, 68,
|
||||
123, 7, 26, 124, 4, 121, 125, 112, 130, 53,
|
||||
24, 132, 133, 65, 22, 35, 34, 33, 21, 19,
|
||||
57, 56, 17, 9, 6, 5, 3, 1,
|
||||
86, 79, 36, 115, 107, 78, 62, 32, 68, 55,
|
||||
57, 133, 130, 132, 104, 121, 87, 88, 80, 64,
|
||||
37, 102, 75, 31, 76, 101, 114, 135, 119, 72,
|
||||
92, 41, 97, 89, 63, 40, 10, 39, 43, 42,
|
||||
13, 73, 30, 14, 38, 122, 48, 49, 50, 51,
|
||||
47, 111, 93, 81, 71, 11, 110, 138, 10, 65,
|
||||
99, 54, 13, 52, 12, 14, 29, 131, 123, 74,
|
||||
77, 112, 94, 59, 82, 15, 90, 91, 58, 70,
|
||||
16, 64, 85, 96, 87, 88, 60, 61, 95, 84,
|
||||
100, 98, 48, 49, 50, 51, 113, 59, 106, 27,
|
||||
103, 25, 109, 105, 23, 20, 18, 67, 46, 8,
|
||||
108, 45, 7, 44, 4, 109, 2, 120, 124, 117,
|
||||
126, 118, 83, 69, 127, 8, 26, 128, 7, 125,
|
||||
4, 129, 134, 28, 116, 136, 137, 53, 24, 66,
|
||||
22, 35, 34, 33, 21, 19, 56, 17, 9, 6,
|
||||
5, 3, 1,
|
||||
}
|
||||
var yyPact = [...]int{
|
||||
|
||||
45, -1000, -1000, 44, -1000, -1000, -1000, -1000, -1000, -1000,
|
||||
73, 71, -1000, 70, 69, 68, 45, 34, -1000, 8,
|
||||
-1000, 26, 33, -1000, -1000, -1000, 30, -1000, -1000, 66,
|
||||
55, -1000, -1000, -1000, -1000, -1000, -4, -1000, 64, -1000,
|
||||
49, -1000, -1000, 51, -1000, -1000, -1000, -1000, -1000, -1000,
|
||||
83, 82, -1000, 81, 78, 76, 49, 36, -1000, 9,
|
||||
-1000, 27, 33, -1000, -1000, -1000, 31, -1000, -1000, 50,
|
||||
63, -1000, -1000, -1000, -1000, -1000, -4, -1000, 73, -1000,
|
||||
-1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
|
||||
-1000, -1000, -1000, 89, -2, 25, -3, 0, -1000, -1000,
|
||||
-1000, -11, 57, -1000, -1000, 26, -20, 22, 42, 67,
|
||||
-1000, 66, 53, 53, -7, -1000, 20, 40, 26, -1,
|
||||
-2, 28, -1000, -1000, -1000, -1000, -1000, -13, -16, -1000,
|
||||
-1000, 26, -26, 57, 53, -1000, 26, -1000, -1000, -1000,
|
||||
27, -1000, -1000, 14, 39, 50, 105, -5, 26, -23,
|
||||
-1000, 11, 38, 53, -1000, 53, -1000, 26, -1000, 105,
|
||||
-1000, -29, 37, -27, -1000, -31, 26, -1000, -6, 26,
|
||||
-1000, 53, -1000, 36, -1000,
|
||||
-1000, -1000, -1000, 93, 52, 23, -3, 8, 74, -1000,
|
||||
-1000, -1000, -12, 58, -1000, -1000, 27, -21, 22, 45,
|
||||
66, -1000, 50, 61, 0, 61, -7, -1000, 21, 43,
|
||||
27, -1, 52, 30, -1000, -1000, -1000, -1000, -1000, 61,
|
||||
-10, -16, -1000, -1000, 27, -26, 58, 61, -1000, 27,
|
||||
-1000, -1000, -1000, -1000, 26, -1000, -1000, 20, 42, 3,
|
||||
114, -5, 27, -24, -1000, 14, 39, 61, -1000, 61,
|
||||
-1000, 27, -1000, 114, -1000, -29, 38, -27, -1000, -30,
|
||||
27, -1000, -6, 27, -1000, 61, -1000, 28, -1000,
|
||||
}
|
||||
var yyPgo = [...]int{
|
||||
|
||||
0, 147, 98, 0, 146, 107, 145, 144, 104, 101,
|
||||
143, 142, 10, 141, 140, 139, 138, 1, 8, 137,
|
||||
136, 135, 2, 6, 14, 134, 133, 5, 130, 129,
|
||||
3, 127, 126, 125, 122, 7, 119, 117, 4, 109,
|
||||
106,
|
||||
0, 152, 116, 0, 151, 113, 150, 149, 111, 108,
|
||||
148, 147, 9, 146, 10, 145, 144, 1, 7, 143,
|
||||
142, 141, 2, 6, 20, 140, 139, 5, 138, 137,
|
||||
3, 134, 131, 129, 126, 8, 123, 122, 4, 110,
|
||||
96,
|
||||
}
|
||||
var yyR1 = [...]int{
|
||||
|
||||
0, 1, 3, 3, 2, 2, 4, 4, 4, 4,
|
||||
4, 4, 5, 12, 12, 13, 13, 11, 14, 6,
|
||||
6, 15, 16, 7, 17, 17, 17, 17, 18, 22,
|
||||
4, 4, 5, 12, 12, 13, 13, 13, 11, 14,
|
||||
6, 6, 15, 16, 7, 17, 17, 17, 17, 18,
|
||||
22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
|
||||
24, 24, 24, 24, 23, 19, 20, 20, 21, 26,
|
||||
8, 25, 27, 27, 29, 9, 28, 30, 30, 32,
|
||||
31, 33, 31, 10, 34, 35, 35, 36, 37, 38,
|
||||
38, 39, 40,
|
||||
22, 24, 24, 24, 24, 23, 19, 20, 20, 21,
|
||||
26, 8, 25, 27, 27, 29, 9, 28, 30, 30,
|
||||
32, 31, 33, 31, 10, 34, 35, 35, 36, 37,
|
||||
38, 38, 39, 40,
|
||||
}
|
||||
var yyR2 = [...]int{
|
||||
|
||||
0, 1, 1, 1, 2, 3, 1, 1, 1, 1,
|
||||
1, 1, 5, 1, 3, 1, 3, 1, 1, 4,
|
||||
4, 1, 0, 3, 1, 1, 1, 1, 2, 1,
|
||||
2, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 5, 5, 4, 3, 0,
|
||||
6, 1, 2, 3, 0, 10, 1, 2, 3, 0,
|
||||
5, 0, 4, 7, 1, 2, 3, 8, 1, 2,
|
||||
3, 8, 1,
|
||||
1, 1, 5, 1, 3, 1, 4, 3, 1, 1,
|
||||
4, 4, 1, 0, 3, 1, 1, 1, 1, 2,
|
||||
1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 5, 5, 4, 3,
|
||||
0, 6, 1, 2, 3, 0, 10, 1, 2, 3,
|
||||
0, 5, 0, 4, 7, 1, 2, 3, 8, 1,
|
||||
2, 3, 8, 1,
|
||||
}
|
||||
var yyChk = [...]int{
|
||||
|
||||
-1000, -1, -2, -4, -5, -6, -7, -8, -9, -10,
|
||||
9, 6, 15, 13, 16, 26, 28, -11, 23, -15,
|
||||
23, -16, -25, 23, -28, 23, -34, 23, -2, 29,
|
||||
32, -17, -18, -19, -20, -21, -22, -24, 17, 10,
|
||||
9, 6, 15, 13, 16, 26, 29, -11, 23, -15,
|
||||
23, -16, -25, 23, -28, 23, -34, 23, -2, 30,
|
||||
33, -17, -18, -19, -20, -21, -22, -24, 17, 10,
|
||||
8, 4, 12, 11, -5, -8, -9, 23, 19, 20,
|
||||
21, 22, 29, -29, 29, -12, -13, -14, 23, 23,
|
||||
24, -23, 37, 23, -24, -26, 14, -35, -36, 27,
|
||||
30, 31, 32, 33, 35, -23, -27, -17, 38, 30,
|
||||
28, -37, 23, -12, -3, 23, 24, -3, -3, 36,
|
||||
30, 28, -18, -22, 32, -35, 29, 34, 36, -27,
|
||||
39, -23, -3, -38, -39, -22, 29, 30, 28, -40,
|
||||
23, -30, -31, 5, 7, 32, -38, 38, 30, 28,
|
||||
-3, -33, -3, -22, -30, -32, 40, 28, 39, 40,
|
||||
-17, 32, -17, -3, 28,
|
||||
21, 22, 30, -29, 30, -12, -13, -14, 28, 23,
|
||||
23, 24, -23, 38, 23, -24, -26, 14, -35, -36,
|
||||
27, 31, 32, 33, -14, 34, 36, -23, -27, -17,
|
||||
39, 31, 29, -37, 23, -12, -3, 23, 24, 33,
|
||||
-3, -3, 37, 31, 29, -18, -22, 33, -35, 30,
|
||||
-3, 35, 37, -27, 40, -23, -3, -38, -39, -22,
|
||||
30, 31, 29, -40, 23, -30, -31, 5, 7, 33,
|
||||
-38, 39, 31, 29, -3, -33, -3, -22, -30, -32,
|
||||
41, 29, 40, 41, -17, 33, -17, -3, 29,
|
||||
}
|
||||
var yyDef = [...]int{
|
||||
|
||||
0, -2, 1, 0, 6, 7, 8, 9, 10, 11,
|
||||
0, 0, 22, 0, 0, 0, 4, 0, 17, 0,
|
||||
21, 0, 0, 51, 54, 56, 0, 64, 5, 0,
|
||||
0, 23, 24, 25, 26, 27, 0, 29, 0, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
||||
42, 43, 49, 0, 0, 0, 13, 15, 18, 19,
|
||||
20, 28, 0, 44, 30, 0, 0, 0, 0, 0,
|
||||
12, 0, 0, 0, 0, 48, 0, 0, 0, 0,
|
||||
65, 0, 68, 14, 16, 2, 3, 0, 0, 47,
|
||||
50, 52, 0, 0, 0, 66, 0, 45, 46, 53,
|
||||
0, 28, 63, 0, 0, 0, 0, 0, 69, 0,
|
||||
72, 0, 0, 0, 61, 0, 70, 0, 55, 57,
|
||||
59, 0, 0, 0, 58, 0, 0, 67, 0, 0,
|
||||
62, 0, 60, 0, 71,
|
||||
0, 0, 23, 0, 0, 0, 4, 0, 18, 0,
|
||||
22, 0, 0, 52, 55, 57, 0, 65, 5, 0,
|
||||
0, 24, 25, 26, 27, 28, 0, 30, 0, 32,
|
||||
33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
|
||||
43, 44, 50, 0, 0, 0, 13, 15, 0, 19,
|
||||
20, 21, 29, 0, 45, 31, 0, 0, 0, 0,
|
||||
0, 12, 0, 0, 0, 0, 0, 49, 0, 0,
|
||||
0, 0, 66, 0, 69, 14, 17, 2, 3, 0,
|
||||
0, 0, 48, 51, 53, 0, 0, 0, 67, 0,
|
||||
16, 46, 47, 54, 0, 29, 64, 0, 0, 0,
|
||||
0, 0, 70, 0, 73, 0, 0, 0, 62, 0,
|
||||
71, 0, 56, 58, 60, 0, 0, 0, 59, 0,
|
||||
0, 68, 0, 0, 63, 0, 61, 0, 72,
|
||||
}
|
||||
var yyTok1 = [...]int{
|
||||
|
||||
@ -226,21 +229,21 @@ var yyTok1 = [...]int{
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
38, 39, 37, 3, 31, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 40, 28,
|
||||
35, 32, 36, 3, 3, 3, 3, 3, 3, 3,
|
||||
39, 40, 38, 3, 32, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 41, 29,
|
||||
36, 33, 37, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 33, 3, 34, 3, 3, 3, 3, 3, 3,
|
||||
3, 34, 3, 35, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
3, 3, 3, 29, 3, 30,
|
||||
3, 3, 3, 30, 3, 31,
|
||||
}
|
||||
var yyTok2 = [...]int{
|
||||
|
||||
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
||||
22, 23, 24, 25, 26, 27,
|
||||
22, 23, 24, 25, 26, 27, 28,
|
||||
}
|
||||
var yyTok3 = [...]int{
|
||||
0,
|
||||
@ -585,13 +588,13 @@ yydefault:
|
||||
|
||||
case 12:
|
||||
yyDollar = yyS[yypt-5 : yypt+1]
|
||||
//line sunrpc.y:86
|
||||
//line sunrpc.y:87
|
||||
{
|
||||
StartEnum(yyDollar[2].val)
|
||||
}
|
||||
case 15:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:95
|
||||
//line sunrpc.y:96
|
||||
{
|
||||
err := AddEnumAutoVal(yyDollar[1].val)
|
||||
if err != nil {
|
||||
@ -600,8 +603,18 @@ yydefault:
|
||||
}
|
||||
}
|
||||
case 16:
|
||||
yyDollar = yyS[yypt-4 : yypt+1]
|
||||
//line sunrpc.y:103
|
||||
{
|
||||
err := AddEnumVal(yyDollar[2].val, yyDollar[4].val)
|
||||
if err != nil {
|
||||
yylex.Error(err.Error())
|
||||
return 1
|
||||
}
|
||||
}
|
||||
case 17:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line sunrpc.y:102
|
||||
//line sunrpc.y:110
|
||||
{
|
||||
err := AddEnumVal(yyDollar[1].val, yyDollar[3].val)
|
||||
if err != nil {
|
||||
@ -609,9 +622,9 @@ yydefault:
|
||||
return 1
|
||||
}
|
||||
}
|
||||
case 20:
|
||||
case 21:
|
||||
yyDollar = yyS[yypt-4 : yypt+1]
|
||||
//line sunrpc.y:124
|
||||
//line sunrpc.y:132
|
||||
{
|
||||
err := AddConst(yyDollar[2].val, yyDollar[4].val)
|
||||
if err != nil {
|
||||
@ -619,147 +632,147 @@ yydefault:
|
||||
return 1
|
||||
}
|
||||
}
|
||||
case 22:
|
||||
case 23:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:138
|
||||
//line sunrpc.y:146
|
||||
{
|
||||
StartTypedef()
|
||||
}
|
||||
case 28:
|
||||
case 29:
|
||||
yyDollar = yyS[yypt-2 : yypt+1]
|
||||
//line sunrpc.y:149
|
||||
//line sunrpc.y:157
|
||||
{
|
||||
AddDeclaration(yyDollar[2].val, yyDollar[1].val)
|
||||
}
|
||||
case 30:
|
||||
case 31:
|
||||
yyDollar = yyS[yypt-2 : yypt+1]
|
||||
//line sunrpc.y:154
|
||||
//line sunrpc.y:162
|
||||
{
|
||||
yyVAL.val = "u" + yyDollar[2].val
|
||||
}
|
||||
case 31:
|
||||
case 32:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:155
|
||||
//line sunrpc.y:163
|
||||
{
|
||||
yyVAL.val = "float32"
|
||||
}
|
||||
case 32:
|
||||
case 33:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:156
|
||||
//line sunrpc.y:164
|
||||
{
|
||||
yyVAL.val = "float64"
|
||||
}
|
||||
case 33:
|
||||
case 34:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:157
|
||||
//line sunrpc.y:165
|
||||
{
|
||||
yyVAL.val = "bool"
|
||||
}
|
||||
case 34:
|
||||
case 35:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:158
|
||||
//line sunrpc.y:166
|
||||
{
|
||||
yyVAL.val = "string"
|
||||
}
|
||||
case 35:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:159
|
||||
{
|
||||
yyVAL.val = "byte"
|
||||
}
|
||||
case 40:
|
||||
case 36:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:167
|
||||
{
|
||||
yyVAL.val = "int64"
|
||||
yyVAL.val = "byte"
|
||||
}
|
||||
case 41:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:168
|
||||
//line sunrpc.y:175
|
||||
{
|
||||
yyVAL.val = "int32"
|
||||
yyVAL.val = "int64"
|
||||
}
|
||||
case 42:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:169
|
||||
//line sunrpc.y:176
|
||||
{
|
||||
yyVAL.val = "int16"
|
||||
yyVAL.val = "int32"
|
||||
}
|
||||
case 43:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:170
|
||||
//line sunrpc.y:177
|
||||
{
|
||||
yyVAL.val = "int16"
|
||||
}
|
||||
case 44:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:178
|
||||
{
|
||||
yyVAL.val = "int8"
|
||||
}
|
||||
case 45:
|
||||
case 46:
|
||||
yyDollar = yyS[yypt-5 : yypt+1]
|
||||
//line sunrpc.y:178
|
||||
//line sunrpc.y:186
|
||||
{
|
||||
AddFixedArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
||||
}
|
||||
case 46:
|
||||
case 47:
|
||||
yyDollar = yyS[yypt-5 : yypt+1]
|
||||
//line sunrpc.y:182
|
||||
//line sunrpc.y:190
|
||||
{
|
||||
AddVariableArray(yyDollar[2].val, yyDollar[1].val, yyDollar[4].val)
|
||||
}
|
||||
case 47:
|
||||
case 48:
|
||||
yyDollar = yyS[yypt-4 : yypt+1]
|
||||
//line sunrpc.y:183
|
||||
//line sunrpc.y:191
|
||||
{
|
||||
AddVariableArray(yyDollar[2].val, yyDollar[1].val, "")
|
||||
}
|
||||
case 48:
|
||||
case 49:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line sunrpc.y:191
|
||||
//line sunrpc.y:199
|
||||
{
|
||||
AddOptValue(yyDollar[3].val, yyDollar[1].val)
|
||||
}
|
||||
case 49:
|
||||
case 50:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line sunrpc.y:195
|
||||
//line sunrpc.y:203
|
||||
{
|
||||
StartStruct(yyDollar[2].val)
|
||||
}
|
||||
case 50:
|
||||
case 51:
|
||||
yyDollar = yyS[yypt-6 : yypt+1]
|
||||
//line sunrpc.y:195
|
||||
//line sunrpc.y:203
|
||||
{
|
||||
AddStruct()
|
||||
}
|
||||
case 54:
|
||||
case 55:
|
||||
yyDollar = yyS[yypt-2 : yypt+1]
|
||||
//line sunrpc.y:208
|
||||
//line sunrpc.y:216
|
||||
{
|
||||
StartUnion(yyDollar[2].val)
|
||||
}
|
||||
case 55:
|
||||
case 56:
|
||||
yyDollar = yyS[yypt-10 : yypt+1]
|
||||
//line sunrpc.y:208
|
||||
//line sunrpc.y:216
|
||||
{
|
||||
AddUnion()
|
||||
}
|
||||
case 59:
|
||||
case 60:
|
||||
yyDollar = yyS[yypt-2 : yypt+1]
|
||||
//line sunrpc.y:221
|
||||
//line sunrpc.y:229
|
||||
{
|
||||
StartCase(yyDollar[2].val)
|
||||
}
|
||||
case 60:
|
||||
case 61:
|
||||
yyDollar = yyS[yypt-5 : yypt+1]
|
||||
//line sunrpc.y:221
|
||||
//line sunrpc.y:229
|
||||
{
|
||||
AddCase()
|
||||
}
|
||||
case 61:
|
||||
case 62:
|
||||
yyDollar = yyS[yypt-1 : yypt+1]
|
||||
//line sunrpc.y:222
|
||||
//line sunrpc.y:230
|
||||
{
|
||||
StartCase("default")
|
||||
}
|
||||
case 62:
|
||||
case 63:
|
||||
yyDollar = yyS[yypt-4 : yypt+1]
|
||||
//line sunrpc.y:222
|
||||
//line sunrpc.y:230
|
||||
{
|
||||
AddCase()
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user