Lines Matching refs:tok
62 tok rune member
119 for _, tok := range toks {
120 if p.tok != tok {
121 p.errorf("expected %s, found %s", scanner.TokenString(tok),
122 scanner.TokenString(p.tok))
131 if p.tok != scanner.EOF {
132 p.tok = p.scanner.Scan()
133 for p.tok == '\r' {
134 p.tok = p.scanner.Scan()
137 if p.tok == '\n' {
154 switch p.tok {
157 if p.tok == '=' {
164 if p.tok == '=' {
171 switch p.tok {
186 switch p.tok {
203 if p.tok != scanner.Ident || !isDirective(p.scanner.TokenText()) {
219 if p.tok != '\n' {
251 switch p.tok {
261 switch p.tok {
266 scanner.TokenString(p.tok))
269 value.appendString(`\` + string(p.tok))
271 p.accept(p.tok)
282 p.accept(p.tok)
308 if endParen && parens > 0 && p.tok == ')' {
316 if p.tok == r {
321 switch p.tok {
329 switch p.tok {
334 scanner.TokenString(p.tok))
337 value.appendString(`\` + string(p.tok))
339 p.accept(p.tok)
361 p.accept(p.tok)
375 switch p.tok {
382 p.accept(p.tok)
385 scanner.TokenString(p.tok))
414 if p.tok == '\t' {
427 switch p.tok {
430 recipe += string(p.tok)
431 p.accept(p.tok)
440 p.accept(p.tok)
461 switch p.tok {
472 if p.tok == '=' {
485 p.errorf("unexpected token %s after rule prerequisites", scanner.TokenString(p.tok))
497 switch p.tok {
501 p.accept(p.tok)
509 p.accept(p.tok)
645 for p.tok == ' ' || p.tok == '\t' {
646 p.accept(p.tok)
653 for isWhitespace(p.tok) {
654 p.accept(p.tok)