pyre.config.pfg.Parser

Module Contents

class pyre.config.pfg.Parser.Parser(**kwds)

Bases: pyre.parsing.parser

A simple parser for {pfg} files

This parser understands a file format that uses whitespace to capture the hierarchical structure of the input

errors
productions
configuration
parse(self, uri, stream, locator)

Harvest the configuration events in {stream}

processor(self, locator)

Receive tokens from the scanner and handle them

ignore(self, **kwds)

Do nothing

section(self, token)

Process a section fragment and use it to specify the assignment context

assignment(self, token)

Process a key assignment

value(self, token)

Process the value portion of an assignment

pop(self, token)

Process the closing of a block

handleError(self, description, locator)

Process the {error}