Lines Matching defs:parser
15 package parser package
62 func parse(p *parser) (file *File, errs []error) {
101 type parser struct { struct
102 scanner scanner.Scanner
103 tok rune
104 errors []error
105 scope *Scope
106 comments []*CommentGroup
107 eval bool
123 func (p *parser) error(err error) {
138 func (p *parser) errorf(format string, args ...interface{}) {
142 func (p *parser) accept(toks ...rune) bool {
154 func (p *parser) next() {
174 func (p *parser) parseDefinitions() (defs []Definition) {
205 func (p *parser) parseAssignment(name string, namePos scanner.Position,
250 func (p *parser) parseModule(typ string, typPos scanner.Position) *Module {
280 func (p *parser) parsePropertyList(isModule, compat bool) (properties []*Property) {
296 func (p *parser) parseProperty(isModule, compat bool) (property *Property) {
330 func (p *parser) parseExpression() (value Expression) {
343 func (p *parser) evaluateOperator(value1, value2 Expression, operator rune,
390 func (p *parser) addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) {
431 func (p *parser) parseOperator(value1 Expression) *Operator {
448 func (p *parser) parseValue() (value Expression) {
467 func (p *parser) parseVariable() Expression {
501 func (p *parser) parseStringValue() *String {
516 func (p *parser) parseIntValue() *Int64 {
543 func (p *parser) parseListValue() *List {
572 func (p *parser) parseMapValue() *Map {