Skip to content

jamesh000/propc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

propc

Compiles propositional functions into C

While taking discrete math I enjoyed propositions and wanted to get some experience with C. This is what came out of it.

  • cpc compiles propositional functions in sexp format into shared libraries.
  • pfunc just takes arguments and plugs them into a compiled function.
  • ttable prints a full truth table of a propositional function

One day I will go back and add

  • The ability for variable names to be arbitrary strings
  • Improved interface programs, like a comparison program
  • Prettier printing in ttable

About

Compiles propositional functions into C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published