Package lepl :: Package lexer :: Module operators :: Class TokenNamespace
[hide private]
[frames] | no frames]

Class TokenNamespace

source code


A modified version of the usual OperatorNamespace without handling of spaces (since that is handled by the lexer), allowing Tokens and other matchers to be configured separately (because they process different types).

At one point this also defined alphabet and discard, used by the rewriter, but because those are global values it makes more sense to supply them directly to the rewriter.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from support.context.Namespace: __enter__, __exit__, current, get, pop, push, set, set_if_not_none

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)