Package dap :: Package parsers :: Class BaseParser
[hide private]
[frames] | no frames]

Class BaseParser

source code

shlex.shlex --+
              |
             BaseParser
Known Subclasses:
das.DASParser, dds.DDSParser

A base parser with support functions.

This module is a simple parser based on ``shlex.shlex``. It has support function for peeking and consuming tokens.

Instance Methods [hide private]
  _consume(self, token)
Consume the specified token or raise exception.
  _peek(self)
Inspect the next token.
  _check(self, *tokens)
Check for token(s).

Inherited from shlex.shlex: __init__, __iter__, error_leader, get_token, next, pop_source, push_source, push_token, read_token, sourcehook


Method Details [hide private]

_consume(self, token)

source code 
Consume the specified token or raise exception.

_peek(self)

source code 
Inspect the next token.

_check(self, *tokens)

source code 
Check for token(s).