Category:Enguage: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 26: Line 26:
These three examples of running the interpreter are: -t, the full unit test suite; -T the unit test for a given concept; and, the interactive shell.
These three examples of running the interpreter are: -t, the full unit test suite; -T the unit test for a given concept; and, the interactive shell.
==Algorithm==
==Algorithm==
All Enguage does is to swap the user's utterance with one of the interpretation's replies. It does this directly, see Hello World, or by issuing (thinking?) further utterances and using the replied answer and the status of that thought: 'if so, ...' being operated if the outcome is positive, and 'if not, ...' if it negative. This supplies the idea of conditional processing and recalling (recursion) is used to create loops, see the FizzBuzz example. Thus, interaction with Enguage is always given as a Turing complete discourse: utterance to reply.
All Enguage does is to swap the user's utterance, "hello", with one of the interpretation's replies, "hello to you too". It does this directly, see Hello World, or by issuing (thinking?) further utterances and using the replied answer and the status of that thought: 'if so, ...' being operated if the outcome is positive, and 'if not, ...' if it negative. This supplies the idea of conditional processing and recalling (recursion) is used to create loops, see the FizzBuzz example. Thus, interaction with Enguage is always given as a Turing complete discourse: utterance to reply.


As well as the 'reply "..."' imperative, Enguage also has several other such 'hooks' to allow other operations available to the software to be called, such as perform "..." to access the Java classes, and run "..." to run an external command. There is also tcpip "..." which makes a call across the internet, although this could be done my running curl? That Enguage passes off processing to traditional software is regarded as little different to a machine code operating an ALU to provide arithmetic operations.
As well as the 'reply "..."' imperative, Enguage also has several other such 'hooks' to allow other operations available to the software to be called, such as perform "..." to access the Java classes, and run "..." to run an external command. That Enguage passes off processing to traditional software is regarded as little different to machine code operating an ALU to provide arithmetic operations. The Turing complete qualities (lists of instructions, which can form loops, and which can be conditionally operated) are available to the implemented language.