Print

Overview

NarsDevelop can be a very handy tool to develop and debug a small Narsese project or parts of a large one, for applications using the NARS library, which can be used separately without using any GUI.

NarsDevelop contain an editor with multiple tabs, supporting UTF-8 encoding and a simple syntax highlighter for Narsese language. Special Narsese symbols can be inserted directly using a keyboard.

Beside, NarsDevelop can run and debug entire code, or just the highlighted one, highlights syntax errors and other types of errors, display and save system's memory (which can be reloaded). In debug mode can show question derivation tree, which shows how question were derived from the external question, until the conclusion were found and a history of inference rules used to get an answer for the last question. Also displays information such as elapsed time and number of inference cycle, which can be handy while using temporary statements (temporal statements with present tense are valid just for a limited time, so the computation must fit into that time to get useful results from those statements).

Working with files



Editing


Debugging


Error reporting

The library has also some error reporting features. Beside syntax errors it can also detect errors regarding to the expected output while using test command.



Output

Output window shows:

Internal system's memory can be displayed in windows - Word, Compounds and Statements, after pressing their respective buttons from the menu or tool-bar.



NarsDevelop - statements

Finally, to see details about question derivations and inference processes for the last external question, system must be turned on in debug mode and after by pressing Inference and Question Derivation. The output should appear in their corresponding output windows. Output from these are in a form of SVG images which can be saved on the computer by right clicking on the image with the mouse.

NarsDevelop - last inference processes

NarsDevelop - last inference processes

NarsDevelop - question derivation

NarsDevelop - last question derivations