(pos int)
| 382 | } |
| 383 | |
| 384 | func (p *parser) safeCharAt(pos int) byte { |
| 385 | if pos >= len(p.input) { |
| 386 | return 0 |
| 387 | } |
| 388 | return p.input[pos] |
| 389 | } |
| 390 | |
| 391 | func isIdentChar(ch byte) bool { |
| 392 | return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch == '_' |