diff options
Diffstat (limited to 'qm.h')
-rw-r--r-- | qm.h | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +#ifndef QM_C +#define QM_C + +#include <string.h> + +typedef struct { + char var; + bool not_; +} Variable; + +typedef struct { + unsigned int numVars; + Variable vars[26]; +} DNFTerm; + +typedef struct { + unsigned int numTerms; + DNFTerm terms[100]; +} DNF; + +unsigned int strcnt(const char* str, const char cnt); +DNF parseDNFStr(const char* inpStr); +DNFTerm parseDNFTerm(const char* termStr); +void printForm(const DNF form); +void printForm2(const DNF form); + +#endif
\ No newline at end of file |