Advertisement
xavierm02

Untitled

Dec 12th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.63 KB | None | 0 0
  1. (* booleanExpression.ml *)
  2. type 'canonical generic_boolean_expression = [
  3.   `Variable of int |
  4.   `Not of 'canonical generic_boolean_expression |
  5.   `And of 'canonical generic_boolean_expression list |
  6.   `Or of 'canonical generic_boolean_expression list
  7. ];;
  8.  
  9. type boolean_expression = [`Not_Canonical] generic_boolean_expression;;
  10.  
  11. (* booleanExpression.mli that works *)
  12. type boolean_expression = [
  13.   `Variable of int |
  14.   `Not of boolean_expression |
  15.   `And of boolean_expression list |
  16.   `Or of boolean_expression list
  17. ];;
  18.  
  19. (* booleanExpression.mli that doesn't work and I don't understand why... *)
  20. type boolean_expression;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement