Lines Matching defs:parser
15 package parser
62 func parse(p *parser) (file *File, errs []error) {
101 type parser struct {
110 func newParser(r io.Reader, scope *Scope) *parser {
111 p := &parser{}
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) {
328 func (p *parser) parseExpression() (value Expression) {
338 func (p *parser) evaluateOperator(value1, value2 Expression, operator rune,
382 func (p *parser) addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) {
423 func (p *parser) parseOperator(value1 Expression) *Operator {
440 func (p *parser) parseValue() (value Expression) {
457 func (p *parser) parseVariable() Expression {
488 func (p *parser) parseStringValue() *String {
503 func (p *parser) parseListValue() *List {
536 func (p *parser) parseMapValue() *Map {