Lines Matching defs:parser
15 package parser package
62 func parse(p *parser) (file *File, errs []error) {
111 type parser struct { struct
112 scanner scanner.Scanner
113 tok rune
114 errors []error
115 scope *Scope
116 comments []*CommentGroup
117 eval bool
132 func (p *parser) error(err error) {
147 func (p *parser) errorf(format string, args ...interface{}) {
151 func (p *parser) accept(toks ...rune) bool {
163 func (p *parser) next() {
183 func (p *parser) parseDefinitions() (defs []Definition) {
214 func (p *parser) parseAssignment(name string, namePos scanner.Position,
259 func (p *parser) parseModule(typ string, typPos scanner.Position) *Module {
289 func (p *parser) parsePropertyList(isModule, compat bool) (properties []*Property) {
305 func (p *parser) parseProperty(isModule, compat bool) (property *Property) {
339 func (p *parser) parseExpression() (value Expression) {
352 func (p *parser) evaluateOperator(value1, value2 Expression, operator rune,
399 func (p *parser) addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) {
440 func (p *parser) parseOperator(value1 Expression) *Operator {
457 func (p *parser) parseValue() (value Expression) {
476 func (p *parser) parseVariable() Expression {
510 func (p *parser) parseStringValue() *String {
525 func (p *parser) parseIntValue() *Int64 {
552 func (p *parser) parseListValue() *List {
581 func (p *parser) parseMapValue() *Map {