Package dns :: Module tokenizer
[hide private]
[frames] | no frames]

Module tokenizer

source code

Tokenize DNS master file format

Classes [hide private]
  UngetBufferFull
Raised when an attempt is made to unget a token when the unget buffer is full.
  Token
A DNS master file format token.
  Tokenizer
A DNS master file format tokenizer.
Variables [hide private]
  _DELIMITERS = frozenset(['\t', '\n', ' ', '"', '(', ')', ';'])
  _QUOTING_DELIMITERS = frozenset(['"'])
  EOF = 0
  EOL = 1
  WHITESPACE = 2
  IDENTIFIER = 3
  QUOTED_STRING = 4
  COMMENT = 5
  DELIMITER = 6
  __package__ = 'dns'