Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cpp.tokenize.Token Class Reference
+ Inheritance diagram for cpp.tokenize.Token:
+ Collaboration diagram for cpp.tokenize.Token:

Public Member Functions

def __init__
 
def __str__
 

Public Attributes

 token_type
 
 name
 
 start
 
 end
 
 whence
 

Static Private Attributes

 __repr__ __str__
 

Detailed Description

Data container to represent a C++ token.

Tokens can be identifiers, syntax char(s), constants, or
pre-processor directives.

start contains the index of the first char of the token in the source
end contains the index of the last char of the token in the source

Definition at line 64 of file tokenize.py.

View newest version in sPHENIX GitHub at line 64 of file tokenize.py

Constructor & Destructor Documentation

def cpp.tokenize.Token.__init__ (   self,
  token_type,
  name,
  start,
  end 
)

Definition at line 74 of file tokenize.py.

View newest version in sPHENIX GitHub at line 74 of file tokenize.py

Member Function Documentation

Member Data Documentation

cpp.tokenize.Token.__repr__ __str__
staticprivate

Definition at line 86 of file tokenize.py.

View newest version in sPHENIX GitHub at line 86 of file tokenize.py

cpp.tokenize.Token.end

Definition at line 78 of file tokenize.py.

View newest version in sPHENIX GitHub at line 78 of file tokenize.py

Referenced by cpp.tokenize.Token.__str__().

cpp.tokenize.Token.name

Definition at line 76 of file tokenize.py.

View newest version in sPHENIX GitHub at line 76 of file tokenize.py

Referenced by cpp.tokenize.Token.__str__().

cpp.tokenize.Token.start

Definition at line 77 of file tokenize.py.

View newest version in sPHENIX GitHub at line 77 of file tokenize.py

Referenced by cpp.tokenize.Token.__str__(), and pump.Token.__str__().

cpp.tokenize.Token.token_type

Definition at line 75 of file tokenize.py.

View newest version in sPHENIX GitHub at line 75 of file tokenize.py

Referenced by pump.Token.__str__(), and pump.Token.Clone().

cpp.tokenize.Token.whence

Definition at line 79 of file tokenize.py.

View newest version in sPHENIX GitHub at line 79 of file tokenize.py


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