Lines Matching defs:parser
15 package parser package
60 type parser struct { struct
61 scanner scanner.Scanner
62 tok rune
63 errors []error
64 comments []Node
65 nodes []Node
66 lines []int
88 func (p *parser) Unpack(pos Pos) scanner.Position {
99 func (p *parser) pos() Pos {
107 func (p *parser) errorf(format string, args ...interface{}) {
118 func (p *parser) accept(toks ...rune) bool {
130 func (p *parser) next() {
142 func (p *parser) parseLines() {
202 func (p *parser) parseDirective() bool {
233 func (p *parser) parseDefine() (*MakeString, Pos) {
276 func (p *parser) parseEscape() {
282 func (p *parser) parseExpression(end ...rune) *MakeString {
358 func (p *parser) parseVariable() Variable {
380 func (p *parser) parseBracketedVariable(start, end rune, pos Pos) Variable {
387 func (p *parser) nameToVariable(name *MakeString) Variable {
393 func (p *parser) parseRule(target *MakeString) {
441 func (p *parser) parseRulePrerequisites(target *MakeString) (*MakeString, bool) {
478 func (p *parser) parseComment() {
512 func (p *parser) parseAssignment(t string, target *MakeString, ident *MakeString) {
634 func (p *parser) ignoreSpaces() int {
643 func (p *parser) ignoreWhitespace() {