Package lepl :: Package lexer :: Module matchers :: Class EmptyToken
[hide private]
[frames] | no frames]

Class EmptyToken

source code


A token that cannot be specialised, and that returns nothing.
Instance Methods [hide private]
 
__call__(self, *args, **kargs)
If complete is specified as True of False it overrides the value set in the constructor.
source code
 
_match(self, stream)
On matching we first assert that the token type is correct and then delegate to the content.
source code

Inherited from Token: __init__

Inherited from BaseToken: __repr__, __str__, compile

Class Methods [hide private]

Inherited from BaseToken: reset_ids

Method Details [hide private]

__call__(self, *args, **kargs)
(Call operator)

source code 
If complete is specified as True of False it overrides the value set in the constructor. If True the content matcher must complete match the Token contents.
Overrides: BaseToken.__call__
(inherited documentation)

_match(self, stream)

source code 
On matching we first assert that the token type is correct and then delegate to the content.
Decorators:
  • @tagged
Overrides: BaseToken._match