Skip to content

feng741/ExpertSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

  • python3.6+

Usage

python3 main.py [filename]

Grammar

  • + -> binary and
  • | -> binary or
  • ^ -> binary xor
  • ! -> unary not
  • => -> implication, a->b: if a then b
  • <=> -> bi-directional implication
  • =ARGS -> fact list
  • ?ARGS -> hypothesis list

Example

Type "quit" to exit the program.
#=> a+b=>c
#=> c=>d
#=> e=>a
#=> =be
#=> ?d
Rule d, True
#=>

About

A (very) simple expert system using backward chaining inference.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages