LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Example-based syntax error messages. | 5 // Example-based syntax error messages. |
6 // See bisonerrors, Makefile, go.y. | 6 // See bisonerrors, Makefile, go.y. |
7 | 7 |
8 static struct { | 8 static struct { |
9 int yystate; | 9 int yystate; |
10 int yychar; | 10 int yychar; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 376, '{', | 59 376, '{', |
60 "unexpected { at end of statement", | 60 "unexpected { at end of statement", |
61 ········ | 61 ········ |
62 125, ';', | 62 125, ';', |
63 "argument to go/defer must be function call", | 63 "argument to go/defer must be function call", |
64 ········ | 64 ········ |
65 425, ';', | 65 425, ';', |
66 "need trailing comma before newline in composite literal", | 66 "need trailing comma before newline in composite literal", |
67 ········ | 67 ········ |
| 68 435, ';', |
| 69 "need trailing comma before newline in composite literal", |
| 70 ········ |
68 112, LNAME, | 71 112, LNAME, |
69 "nested func not allowed", | 72 "nested func not allowed", |
70 | 73 |
71 615, ';', | 74 615, ';', |
72 "else must be followed by if or statement block" | 75 "else must be followed by if or statement block" |
73 }; | 76 }; |
LEFT | RIGHT |