gelijergensen / MetaLogic

A general purpose calculator for propositional logic systems
MIT License
0 stars 0 forks source link

Added the Abstract Definition of Logic Systems #6

Closed gelijergensen closed 3 years ago

gelijergensen commented 3 years ago

I only handled the half of the definition which handles the representation of formulas. The representation of rewrite rules will come next. To test this (without properly testing it), I also implemented the Interpreter and AST interfaces which allows us to parse into a AST String, from which point we could possibly change the underlying type of the AST to some AST a and then generically interpret that AST as a formula of a given logic system (e.g. PropositionalLogic). It should be decently modular, although a lot of the code that would take advantage of that modularity (e.g. fmap for ASTs) has not yet been written.

resolves #5 (partially - rewrite rules coming later)