github.com/rsc/go@v0.0.0-20150416155037-e040fd465409/src/cmd/internal/gc/yymsg.go (about)

     1  // DO NOT EDIT - generated with go generate
     2  
     3  // Copyright 2010 The Go Authors.  All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Example-based syntax error messages.
     8  // See yaccerrors.go.
     9  
    10  package gc
    11  
    12  var yymsg = []struct {
    13  	yystate int
    14  	yychar  int
    15  	msg     string
    16  }{
    17  	// Each line of the form % token list
    18  	// is converted by yaccerrors.go into the yystate and yychar caused
    19  	// by that token list.
    20  
    21  	{332, ',',
    22  		"unexpected comma during import block"},
    23  
    24  	{89, ';',
    25  		"missing import path; require quoted string"},
    26  
    27  	{390, ';',
    28  		"missing { after if clause"},
    29  
    30  	{387, ';',
    31  		"missing { after switch clause"},
    32  
    33  	{279, ';',
    34  		"missing { after for clause"},
    35  
    36  	{498, LBODY,
    37  		"missing { after for clause"},
    38  
    39  	{17, '{',
    40  		"unexpected semicolon or newline before {"},
    41  
    42  	{111, ';',
    43  		"unexpected semicolon or newline in type declaration"},
    44  
    45  	{78, '}',
    46  		"unexpected } in channel type"},
    47  
    48  	{78, ')',
    49  		"unexpected ) in channel type"},
    50  
    51  	{78, ',',
    52  		"unexpected comma in channel type"},
    53  
    54  	{416, LELSE,
    55  		"unexpected semicolon or newline before else"},
    56  
    57  	{329, ',',
    58  		"name list not allowed in interface type"},
    59  
    60  	{279, LVAR,
    61  		"var declaration not allowed in for initializer"},
    62  
    63  	{25, '{',
    64  		"unexpected { at end of statement"},
    65  
    66  	{371, '{',
    67  		"unexpected { at end of statement"},
    68  
    69  	{122, ';',
    70  		"argument to go/defer must be function call"},
    71  
    72  	{398, ';',
    73  		"need trailing comma before newline in composite literal"},
    74  
    75  	{414, ';',
    76  		"need trailing comma before newline in composite literal"},
    77  
    78  	{124, LNAME,
    79  		"nested func not allowed"},
    80  
    81  	{650, ';',
    82  		"else must be followed by if or statement block"},
    83  }