Averest


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

AddN

Full Usage: AddN

AddZ

Full Usage: AddZ

AndB

Full Usage: AndB

DivN

Full Usage: DivN

DivZ

Full Usage: DivZ

EqqB

Full Usage: EqqB

EqqN

Full Usage: EqqN

EqqZ

Full Usage: EqqZ

LeqN

Full Usage: LeqN

LeqZ

Full Usage: LeqZ

LesN

Full Usage: LesN

LesZ

Full Usage: LesZ

ModN

Full Usage: ModN

ModZ

Full Usage: ModZ

MulN

Full Usage: MulN

MulZ

Full Usage: MulZ

NeqB

Full Usage: NeqB

NeqN

Full Usage: NeqN

NeqZ

Full Usage: NeqZ

OrB

Full Usage: OrB

SubN

Full Usage: SubN

SubZ

Full Usage: SubZ

Instance members

Instance member Description

this.getName ()

Full Usage: this.getName ()

Returns: string

Returns: string