Exercise 13: Rule parser

Summary

Write a parser to allow rules to be added to the brain. Add a hash to the brain called "rules" that indexes rules on the following three items:

1.Their type
2.Their first non-variable entity type
3.Their second non-variable entity type

Test cases

Click here