Module Melange_compiler_libs.Parser

type token =
  1. | WITH
  2. | WHILE
  3. | WHEN
  4. | VIRTUAL
  5. | VAL
  6. | UNDERSCORE
  7. | UIDENT(string)
  8. | TYPE
  9. | TRY
  10. | TRUE
  11. | TO
  12. | TILDE
  13. | THEN
  14. | STRUCT
  15. | STRING((string, Location.t, option(string)))
  16. | STAR
  17. | SIG
  18. | SEMISEMI
  19. | SEMI
  20. | RPAREN
  21. | REC
  22. | RBRACKET
  23. | RBRACE
  24. | QUOTED_STRING_ITEM((string, Location.t, string, Location.t, option(string)))
  25. | QUOTED_STRING_EXPR((string, Location.t, string, Location.t, option(string)))
  26. | QUOTE
  27. | QUESTION
  28. | PRIVATE
  29. | PREFIXOP(string)
  30. | PLUSEQ
  31. | PLUSDOT
  32. | PLUS
  33. | PERCENT
  34. | OR
  35. | OPTLABEL(string)
  36. | OPEN
  37. | OF
  38. | OBJECT
  39. | NONREC
  40. | NEW
  41. | MUTABLE
  42. | MODULE
  43. | MINUSGREATER
  44. | MINUSDOT
  45. | MINUS
  46. | METHOD
  47. | MATCH
  48. | LPAREN
  49. | LIDENT(string)
  50. | LETOP(string)
  51. | LET
  52. | LESSMINUS
  53. | LESS
  54. | LBRACKETPERCENTPERCENT
  55. | LBRACKETPERCENT
  56. | LBRACKETLESS
  57. | LBRACKETGREATER
  58. | LBRACKETBAR
  59. | LBRACKETATATAT
  60. | LBRACKETATAT
  61. | LBRACKETAT
  62. | LBRACKET
  63. | LBRACELESS
  64. | LBRACE
  65. | LAZY
  66. | LABEL(string)
  67. | INT((string, option(char)))
  68. | INITIALIZER
  69. | INHERIT
  70. | INFIXOP4(string)
  71. | INFIXOP3(string)
  72. | INFIXOP2(string)
  73. | INFIXOP1(string)
  74. | INFIXOP0(string)
  75. | INCLUDE
  76. | IN
  77. | IF
  78. | HASHOP(string)
  79. | HASH
  80. | GREATERRBRACKET
  81. | GREATERRBRACE
  82. | GREATER
  83. | FUNCTOR
  84. | FUNCTION
  85. | FUN
  86. | FOR
  87. | FLOAT((string, option(char)))
  88. | FALSE
  89. | EXTERNAL
  90. | EXCEPTION
  91. | EQUAL
  92. | EOL
  93. | EOF
  94. | END
  95. | ELSE
  96. | DOWNTO
  97. | DOTOP(string)
  98. | DOTDOT
  99. | DOT
  100. | DONE
  101. | DOCSTRING(Docstrings.docstring)
  102. | DO
  103. | CONSTRAINT
  104. | COMMENT((string, Location.t))
  105. | COMMA
  106. | COLONGREATER
  107. | COLONEQUAL
  108. | COLONCOLON
  109. | COLON
  110. | CLASS
  111. | CHAR(char)
  112. | BEGIN
  113. | BARRBRACKET
  114. | BARBAR
  115. | BAR
  116. | BANG
  117. | BACKQUOTE
  118. | ASSERT
  119. | AS
  120. | ANDOP(string)
  121. | AND
  122. | AMPERSAND
  123. | AMPERAMPER
;
exception Error;
let use_file: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => list(Parsetree.toplevel_phrase);
let toplevel_phrase: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.toplevel_phrase;
let parse_val_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let parse_pattern: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.pattern;
let parse_mty_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let parse_module_type: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.module_type;
let parse_module_expr: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.module_expr;
let parse_mod_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let parse_mod_ext_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let parse_expression: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.expression;
let parse_core_type: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.core_type;
let parse_constr_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let parse_any_longident: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Longident.t;
let interface: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.signature;
let implementation: (Stdlib.Lexing.lexbuf => token) => Stdlib.Lexing.lexbuf => Parsetree.structure;
module MenhirInterpreter: { ... };
module Incremental: { ... };