opennars / Narjure

A Clojure implementation of the Non-Axiomatic Reasoning System proposed by Pei Wang.
GNU General Public License v2.0
43 stars 11 forks source link

Parser exception for single term sentence #43

Closed TonyLo1 closed 8 years ago

TonyLo1 commented 8 years ago

Following Narsese causes exception: !

This functionality is required for goals.

0xc1c4da commented 8 years ago

whats the statement in this case? atm the grammar doesn't handle a sentence with empty statement?

https://github.com/jarradh/narjure/blob/master/resources/narsese.bnf#L8

could be changed to | [statement]"!" [tense] [desire]

TonyLo1 commented 8 years ago

oh, the statement was removed :)

Should have said: <jump>!

patham9 commented 8 years ago

jump! not <jump>!. As I said NAL and Narsese is complete just look at the NAL test file to see how to enter statements properly ;)