Ops2 Type
Ops2 declares an enumeration type of the binary operators of the MiniC language (this makes is flexible to add operators). Available operators are:
- AddN,SubN,MulN,DivN,ModN for addition, subtraction, multiplication, division and modulo operations of Cnat values. The result of these operations is a Cnat value.
- AddZ,SubZ,MulZ,DivZ,ModZ for addition, subtraction, multiplication, division and modulo operations of Cint values. The result of these operations is a Cint value.
- LesN,LeqN,EqqN,NeqN for less-than, less-than-or-equal, equal, and inequal relation of Cnat values. The result of these operations is a Cbool value.
- LesZ,LeqZ,EqqZ,NeqZ for less-than, less-than-or-equal, equal, and inequal relation of Cint values. The result of these operations is a Cbool value.
- AndB,OrB,EqqB,NeqB for bitwise conjunction, disjunction, equivalence and exclusive-or operation on Cbool values. The result of these operations is a Cbool value.
Union cases
Union case | Description |
Full Usage:
AddN
|
|
Full Usage:
AddZ
|
|
Full Usage:
AndB
|
|
Full Usage:
DivN
|
|
Full Usage:
DivZ
|
|
Full Usage:
EqqB
|
|
Full Usage:
EqqN
|
|
Full Usage:
EqqZ
|
|
Full Usage:
LeqN
|
|
Full Usage:
LeqZ
|
|
Full Usage:
LesN
|
|
Full Usage:
LesZ
|
|
Full Usage:
ModN
|
|
Full Usage:
ModZ
|
|
Full Usage:
MulN
|
|
Full Usage:
MulZ
|
|
Full Usage:
NeqB
|
|
Full Usage:
NeqN
|
|
Full Usage:
NeqZ
|
|
Full Usage:
OrB
|
|
Full Usage:
SubN
|
|
Full Usage:
SubZ
|
|
Instance members
Instance member | Description |
Full Usage:
this.IsAddN
Returns: bool
|
|
Full Usage:
this.IsAddZ
Returns: bool
|
|
Full Usage:
this.IsAndB
Returns: bool
|
|
Full Usage:
this.IsDivN
Returns: bool
|
|
Full Usage:
this.IsDivZ
Returns: bool
|
|
Full Usage:
this.IsEqqB
Returns: bool
|
|
Full Usage:
this.IsEqqN
Returns: bool
|
|
Full Usage:
this.IsEqqZ
Returns: bool
|
|
Full Usage:
this.IsLeqN
Returns: bool
|
|
Full Usage:
this.IsLeqZ
Returns: bool
|
|
Full Usage:
this.IsLesN
Returns: bool
|
|
Full Usage:
this.IsLesZ
Returns: bool
|
|
Full Usage:
this.IsModN
Returns: bool
|
|
Full Usage:
this.IsModZ
Returns: bool
|
|
Full Usage:
this.IsMulN
Returns: bool
|
|
Full Usage:
this.IsMulZ
Returns: bool
|
|
Full Usage:
this.IsNeqB
Returns: bool
|
|
Full Usage:
this.IsNeqN
Returns: bool
|
|
Full Usage:
this.IsNeqZ
Returns: bool
|
|
Full Usage:
this.IsOrB
Returns: bool
|
|
Full Usage:
this.IsSubN
Returns: bool
|
|
Full Usage:
this.IsSubZ
Returns: bool
|
|
Full Usage:
this.getName ()
Returns: string
|
|