Ops1 Type
Ops1 declares an enumeration type of the unary operators of the MiniC language (this makes is flexible to add operators). Available operators are:
- NotB: a bitwise negation of Cbool values.
- CastB: instructs the type checker to interpret this machine word as boolean, i.e., make it a Cbool value.
- CastN: instructs the type checker to interpret this machine word as Cnat, i.e., make it a Cnat value.
- CastZ: instructs the type checker to interpret this machine word as Cint, i.e., make it a Cint value.
Union cases
Union case | Description |
Full Usage:
CastB
|
|
Full Usage:
CastN
|
|
Full Usage:
CastZ
|
|
Full Usage:
NotB
|
|
Instance members
Instance member | Description |
Full Usage:
this.IsCastB
Returns: bool
|
|
Full Usage:
this.IsCastN
Returns: bool
|
|
Full Usage:
this.IsCastZ
Returns: bool
|
|
Full Usage:
this.IsNotB
Returns: bool
|
|
Full Usage:
this.getName ()
Returns: string
|
|