A logical expression compiler and interpreter implemetation