menhir Questions

2

Solved

Is it possible to suppress unused precedence warnings in menhir? Background: I have a core parser Lib.mly with several rules and, separately, a host of additional parsers (A.mly, B.mly, ...) whic...
Mach asked 17/12, 2017 at 0:30

2

Solved

I am using Menhir to parse a DSL. My parser builds an AST using an elaborate collection of nested types. During later typecheck and other passes in error reports generated for a user, I would like ...
Nipa asked 11/7, 2017 at 2:4

2

Solved

I'm a quite beginner of menhir. I'm wondering how to parse OCaml like tuple-pattern in my own language, which is quite similar to OCaml. For example, in the expression let a,b,c = ..., a, b, c sh...
Album asked 28/10, 2015 at 16:7

1

Solved

I need to use menhir with sedlex for whatever reason (utf-8), but don't know how to make the generated parser depend on Sedlexing instead of Lexing. Any tips? When I run menhir --infer parser.mly...
Malevolent asked 15/6, 2015 at 19:9

1

Solved

I discovered that Menhir provides --dump and --explain options and it helps debugging a lot. But how can I enable these options under ocamlbuild so that Menhir always generates dump files at compil...
Alps asked 3/5, 2015 at 8:1

1

I am writing a small parser with Menhir + Ocamllex and I have two requirements I cannot seem to meet at the same time I would like to keep parsing after an error (to report more errors). I would ...
Bughouse asked 8/12, 2014 at 3:19

3

Solved

I am currently working on a website project written in OCaml and compiled to javascript using js_of_ocaml. It works pretty well as long as I have only one source file using the command ocamlfind oc...
Leven asked 17/1, 2013 at 16:21

3

Solved

I'm a complete newbie when it comes to OCaml. I've only recently started using the language (about 2 weeks ago), but unfortunately, I've been tasked with making a syntax analyzer (parser + lexer, w...
Jerrold asked 27/3, 2012 at 20:39

1

Solved

I'm trying to parse a language where the operators have a dynamic attributes (priority and precedence) using the Menhir parser (similar to Ocamlyacc). During the lexing phase, all the operators fil...
Vaginismus asked 1/7, 2012 at 16:8
1

© 2022 - 2024 — McMap. All rights reserved.