Class: Arithmetic10

Six~ Arithmetic10

Example 6/10: actions to generate mnemonic stack machine code.


new Arithmetic10()

Source:

Extends

Methods


add()

add: '+' product;

Source:

divide()

divide: '/' signed;

Source:

input()

input: 'input' [ Number ];

Source:

multiply()

multiply: '*' signed;

Source:

name()

name: Name;

Source:

number()

number: Number;

Source:

run()

Creates stack machine

Inherited From:
Overrides:
Source:

signed()

signed: [ '-' ] term;

Source:

stmt()

stmt: sum;

Source:

subtract()

subtract: '-' product;

Source:

sum()

sum: 'let' Name '=' sum | product [{ add | subtract }];

Source:

toString()

Represents code as text

Inherited From:
Overrides:
Source: