Created
October 26, 2016 04:35
-
-
Save LucioFranco/33983a14059ad16eacb136355aead0ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(check-expect (eval-program (bool-parser (lex-this bool-lexer (open-input-string "(((false)) or true)")))) true) | |
(check-expect (eval-program (bool-parser (lex-this bool-lexer (open-input-string "(not true)")))) false) | |
(check-expect (eval-program (bool-parser (lex-this bool-lexer (open-input-string "(if true then ((false) or true) else false)")))) true) | |
(check-expect (eval-program (bool-parser (lex-this bool-lexer (open-input-string "(let (verytrue false) in (verytrue))")))) false) | |
(check-expect (eval-program (bool-parser (lex-this bool-lexer (open-input-string "(let (tango (lambda (x) (x and false))) in (call tango with true))")))) false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment