Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 769 Bytes

spoken.md

File metadata and controls

26 lines (23 loc) · 769 Bytes

Programming By Voice

You can program repertoires/concepts by copying the examples in ./etc/reps, in a traditional written file; however, you can also program Enguage by voice:

> To the phrase hello reply hello to you too.
> hello.
Hello to you too.

You can introduce simple variables:

> To the phrase my name is variable name reply hello variable name.
> my name is martin.
hello martin.

Simple functions can be programmed by voice:

The product of x and y is x times y.
> What is the product of 6 and 7.
42, the product of 6 and 7 is 42.

This includes recursive functions:

> The factorial of n is n times the factorial of n minus 1.
> What is the factorial of 4.
24, the factorial of 4 is 24.