Advertisement
Guest User

Untitled

a guest
May 7th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. .
  2. .
  3. .
  4.  
  5. ;type expr = Ast.expr
  6.  
  7. ;module type Reader = sig
  8. type ast
  9. ;value reader_expr: string -> ast -> expr -> expr -> expr
  10. ;end
  11.  
  12. ;module Make (Read: Reader) = struct
  13.  
  14. ;type ast = [= Read.ast
  15. | `Lid of string
  16. | `Seq of ast & ast
  17. | `Binding of ast & string
  18. | `Absent of ast
  19. | `Present of ast
  20. | `List0 of ast
  21. | `Opt of ast
  22. | `Test of expr
  23. | `Alts of ast list ]
  24. .
  25. .
  26. .
  27. =>
  28. Error: The type Read.ast is not a polymorphic variant type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement