chc.app.COffset module
Base class and subclasses
|
Base class for an expression offset. |
|
|
|
Field offset |
|
Index offset into an array. |
Object representation for CIL offset sum type.
- class chc.app.COffset.CFieldOffset(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.COffset.COffsetField offset
tags[1]: fieldname
args[0]: ckey of the containing struct
args[1]: index of sub-offset in cdictionary
- property ckey: int
- property fieldname: str
- property is_field: bool
- property offset: chc.app.COffset.COffset
- class chc.app.COffset.CIndexOffset(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.COffset.COffsetIndex offset into an array.
args[0]: index of base of index expression in cdictionary
args[1]: index of sub-offset in cdictionary
- property index_exp: CExp
- property is_index: bool
- property offset: chc.app.COffset.COffset
- class chc.app.COffset.CNoOffset(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.COffset.COffset- property is_no_offset: bool
- class chc.app.COffset.COffset(cd: CDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDictionaryRecordBase class for an expression offset.
- property is_field: bool
- property is_index: bool
- property is_no_offset: bool