systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
parselib.transforms.literal_expansion.LiteralExpansion Class Reference
Inheritance diagram for parselib.transforms.literal_expansion.LiteralExpansion:
Collaboration diagram for parselib.transforms.literal_expansion.LiteralExpansion:

Public Member Functions

 __init__ (self, structure)
 
 portbinding (self, tree)
 
 hfieldaccess (self, tree)
 
 hvarref (self, tree)
 
 idlit (self, tree)
 
 numlit (self, tree)
 
 numlitwidth (self, tree)
 
 htypeint (self, tree)
 
 htype (self, tree)
 
 hsensvar (self, tree)
 
 hasync (self, tree)
 
 npa (self, tree)
 
 hmodule (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

 structure = structure
 
bool is_port_binding = False
 
 port_binding_module = None
 
list field_access = None
 
# if we are in port binding, we shall take the ids directly is_port_binding = self.port_binding_module
 
 current_module = tree.children[0]
 

Detailed Description

Expands integer literal into int

Definition at line 10 of file literal_expansion.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.literal_expansion.LiteralExpansion.__init__ ( self,
structure )

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 12 of file literal_expansion.py.

Member Function Documentation

◆ hasync()

parselib.transforms.literal_expansion.LiteralExpansion.hasync ( self,
tree )

Definition at line 117 of file literal_expansion.py.

◆ hfieldaccess()

parselib.transforms.literal_expansion.LiteralExpansion.hfieldaccess ( self,
tree )
      hFieldaccess  NONAME [
        hBinop ARRAYSUBSCRIPT [
          hBinop ARRAYSUBSCRIPT [
            hVarref pa_scclang_global_15 NOLIST
            hVarref sig_scclang_global_1 NOLIST
          ]
          hVarref sig_scclang_global_1 NOLIST
        ]
        hField x NOLIST
      ]

Definition at line 27 of file literal_expansion.py.

◆ hmodule()

parselib.transforms.literal_expansion.LiteralExpansion.hmodule ( self,
tree )

Definition at line 129 of file literal_expansion.py.

◆ hsensvar()

parselib.transforms.literal_expansion.LiteralExpansion.hsensvar ( self,
tree )

Definition at line 109 of file literal_expansion.py.

◆ htype()

parselib.transforms.literal_expansion.LiteralExpansion.htype ( self,
tree )

Definition at line 102 of file literal_expansion.py.

◆ htypeint()

parselib.transforms.literal_expansion.LiteralExpansion.htypeint ( self,
tree )

Definition at line 99 of file literal_expansion.py.

◆ hvarref()

parselib.transforms.literal_expansion.LiteralExpansion.hvarref ( self,
tree )

Definition at line 50 of file literal_expansion.py.

◆ idlit()

parselib.transforms.literal_expansion.LiteralExpansion.idlit ( self,
tree )

Definition at line 86 of file literal_expansion.py.

◆ npa()

parselib.transforms.literal_expansion.LiteralExpansion.npa ( self,
tree )

Definition at line 126 of file literal_expansion.py.

◆ numlit()

parselib.transforms.literal_expansion.LiteralExpansion.numlit ( self,
tree )

Definition at line 90 of file literal_expansion.py.

◆ numlitwidth()

parselib.transforms.literal_expansion.LiteralExpansion.numlitwidth ( self,
tree )

Definition at line 94 of file literal_expansion.py.

◆ portbinding()

parselib.transforms.literal_expansion.LiteralExpansion.portbinding ( self,
tree )

Definition at line 19 of file literal_expansion.py.

Member Data Documentation

◆ current_module

parselib.transforms.literal_expansion.LiteralExpansion.current_module = tree.children[0]

Definition at line 130 of file literal_expansion.py.

◆ field_access

list parselib.transforms.literal_expansion.LiteralExpansion.field_access = None

Definition at line 17 of file literal_expansion.py.

◆ is_port_binding [1/2]

bool parselib.transforms.literal_expansion.LiteralExpansion.is_port_binding = False

Definition at line 15 of file literal_expansion.py.

◆ is_port_binding [2/2]

# if we are in port binding, we shall take the ids directly parselib.transforms.literal_expansion.LiteralExpansion.is_port_binding = self.port_binding_module

Definition at line 56 of file literal_expansion.py.

◆ port_binding_module

parselib.transforms.literal_expansion.LiteralExpansion.port_binding_module = None

Definition at line 16 of file literal_expansion.py.

◆ structure

parselib.transforms.literal_expansion.LiteralExpansion.structure = structure

Definition at line 14 of file literal_expansion.py.


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