1
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Example-based syntax error messages.
// See bisonerrors, Makefile, go.y.
static struct {
int yystate;
int yychar;
char *msg;
} yymsg[] = {
// Each line of the form % token list
// is converted by bisonerrors into the yystate and yychar caused
// by that token list.
221, ',',
"unexpected comma during import block",
377, ';',
"unexpected semicolon or newline before {",
398, ';',
"unexpected semicolon or newline before {",
237, ';',
"unexpected semicolon or newline before {",
474, LBODY,
"unexpected semicolon or newline before {",
22, '{',
"unexpected semicolon or newline before {",
144, ';',
"unexpected semicolon or newline in type declaration",
37, '}',
"unexpected } in channel type",
37, ')',
"unexpected ) in channel type",
37, ',',
"unexpected comma in channel type",
437, LELSE,
"unexpected semicolon or newline before else",
257, ',',
"name list not allowed in interface type",
237, LVAR,
"var declaration not allowed in for initializer",
65, '{',
"unexpected { at end of statement",
376, '{',
"unexpected { at end of statement",
125, ';',
"argument to go/defer must be function call",
425, ';',
"need trailing comma before newline in composite literal",
112, LNAME,
"nested func not allowed",
615, ';',
"else must be followed by if or statement block"
};
|