Questions tagged [menhir]

Menhir is a parser generator for OCaml

Menhir is a LR(1) parser generator for the Objective Caml programming language. That is, Menhir compiles LR(1) grammar specifications down to Objective Caml code. It is mostly compatible with ocamlyacc, and can be used with ocamllex.

References:

See also:

76 questions
-1
votes
1 answer

Debug parser by printing useful information

I would like to parse a set of expressions, for instance:X[3], X[-3], XY[-2], X[4]Y[2], etc. In my parser.mly, index (which is inside []) is defined as follows: index: | INTEGER { $1 } | MINUS INTEGER { 0 - $2 } The token INTEGER, MINUS etc. are…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
1 2 3 4 5
6