Class: Functions06

Six~ Functions06

Example 6/06: changes actions to support returning names, numbers, and input as functions.


new Functions06()

Source:

Extends

Methods


add()

add: '+' product;

Inherited From:
Source:

divide()

divide: '/' signed;

Inherited From:
Source:

input()

input: 'input' [ Number ]; returns fct

Source:

list()

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

Inherited From:
Source:

multiply()

multiply: '*' signed;

Inherited From:
Source:

name()

name: Name; returns fct

Overrides:
Source:

number()

number: Number; returns fct

Overrides:
Source:

product()

product: signed [{ multiply | divide }];

Inherited From:
Source:

signed()

signed: [ '-' ] term;

Inherited From:
Source:

subtract()

subtract: '-' product;

Inherited From:
Source:

sum()

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

Inherited From:
Source:

term()

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

Inherited From:
Source: