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