Lines Matching refs:tok
103 tok rune member
143 for _, tok := range toks {
144 if p.tok != tok {
145 p.errorf("expected %s, found %s", scanner.TokenString(tok),
146 scanner.TokenString(p.tok))
155 if p.tok != scanner.EOF {
156 p.tok = p.scanner.Scan()
157 if p.tok == scanner.Comment {
159 for p.tok == scanner.Comment {
166 p.tok = p.scanner.Scan()
176 switch p.tok {
183 switch p.tok {
193 scanner.TokenString(p.tok))
199 scanner.TokenString(p.tok))
254 if p.tok == '{' {
258 if !p.accept(p.tok) {
281 for p.tok == scanner.Ident {
285 if p.tok != ',' {
332 switch p.tok {
432 operator := p.tok
449 switch p.tok {
462 scanner.TokenString(p.tok))
519 if p.tok == '-' {
520 str += string(p.tok)
521 p.accept(p.tok)
522 if p.tok != scanner.Int {
523 p.errorf("expected int; found %s", scanner.TokenString(p.tok))
550 for p.tok != ']' {
554 if p.tok != ',' {