opennars / OpenNARS-for-Applications

General reasoning component for applications based on NARS theory.
https://cis.temple.edu/~pwang/NARS-Intro.html
MIT License
92 stars 40 forks source link

Narsese grammer parser #263

Closed kripper closed 5 months ago

kripper commented 5 months ago

I was checking https://github.com/opennars/OpenNARS-for-Applications/blob/master/narsese_to_english.py and it's just using regular expressions. Is there any narsese grammer parser implementation that could be used instead?

See also: https://github.com/patham9/NarsGPT/issues/14

kripper commented 5 months ago

Here I found a real parser using lark: https://github.com/bowen-xu/PyNARS/tree/dev/pynars/Narsese/Parser

Should we migrate to PyNARS? If so, please consider including this project into the opennars organization and put a link in the other repo README files.

kripper commented 5 months ago

Also found this: https://github.com/opennars/OpenNARS-for-Applications/wiki/Narsese-Parser