Class: Functions05

Six~ Functions05

Example 6/05: adds actions to support variable names.


new Functions05()

Source:

Extends

Methods


add()

add: '+' product;

Inherited From:
Overrides:
Source:

divide()

divide: '/' signed;

Inherited From:
Overrides:
Source:

list()

list: sum [{ ',' sum }];

Inherited From:
Overrides:
Source:

multiply()

multiply: '*' signed;

Inherited From:
Overrides:
Source:

name()

name: Name; returns value or 0

Source:

number()

number: Number;

Inherited From:
Overrides:
Source:

product()

product: signed [{ multiply | divide }];

Inherited From:
Overrides:
Source:

signed()

signed: [ '-' ] term;

Inherited From:
Overrides:
Source:

subtract()

subtract: '-' product;

Inherited From:
Overrides:
Source:

sum()

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

Overrides:
Source:

term()

term: number | '(' sum ')';

Inherited From:
Overrides:
Source: