Package rosh :: Package impl :: Module xdot :: Class DotScanner
[frames] | no frames]

Class DotScanner

source code

Scanner --+
          |
         DotScanner

Instance Methods
 
__init__(self) (Inherited from rosh.impl.xdot.Scanner) source code
 
next(self, buf, pos) (Inherited from rosh.impl.xdot.Scanner) source code
Class Variables
  tokens = [(-2, '[ \\t\\f\\r\\n\\v]+|//[^\\r\\n]*|/\\*.*?\\*/|#...
  symbols = {'+': 12, ',': 8, ':': 9, ';': 10, '=': 11, '[': 4, ...
  literals = {'digraph': 15, 'edge': 17, 'graph': 14, 'node': 16...
  ignorecase = True
Class Variable Details

tokens

Value:
[(-2,
  '[ \\t\\f\\r\\n\\v]+|//[^\\r\\n]*|/\\*.*?\\*/|#[^\\r\\n]*',
  False),
 (0, '[a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*', True),
 (0, '-?(?:\\.[0-9]+|[0-9]+(?:\\.[0-9]*)?)', False),
 (1, '"[^"\\\\]*(?:\\\\.[^"\\\\]*)*"', False),
 (2, '<[^<>]*(?:<[^<>]*>[^<>]*)*>', False),
 (3, '-[>-]', False)]

symbols

Value:
{'+': 12,
 ',': 8,
 ':': 9,
 ';': 10,
 '=': 11,
 '[': 4,
 ']': 5,
 '{': 6,
...

literals

Value:
{'digraph': 15,
 'edge': 17,
 'graph': 14,
 'node': 16,
 'strict': 13,
 'subgraph': 18}