Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
parsimonious.utils.Token Class Reference
Inheritance diagram for parsimonious.utils.Token:
Inheritance graph
[legend]
Collaboration diagram for parsimonious.utils.Token:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, type)
 
 __str__ (self)
 
 __eq__ (self, other)
 
- Public Member Functions inherited from parsimonious.utils.StrAndRepr
 __repr__ (self)
 

Public Attributes

 type
 

Detailed Description

A class to represent tokens, for use with TokenGrammars

You will likely want to subclass this to hold additional information, like
the characters that you lexed to create this token. Alternately, feel free
to create your own class from scratch. The only contract is that tokens
must have a ``type`` attr.

The documentation for this class was generated from the following file: