Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
bc873567
Commit
bc873567
authored
Jan 17, 2020
by
POTTIER Francois
Browse files
Manual: indicate dune is preferred over ocamlbuild.
parent
9db9a976
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/manual.tex
View file @
bc873567
...
...
@@ -4137,7 +4137,7 @@ This material should be of interest only to authors of build systems
who wish to build support for
\menhir
into their system.
%
Ordinary users should skip this section and use a build system that knows
about
\menhir
, such as
\ocamlbuild
or
\dune
.
about
\menhir
, such as
\dune
(preferred) or
\ocamlbuild
.
\subsection
{
\ocaml
type inference and dependency analysis
}
\label
{
sec:build:infer
}
...
...
@@ -4301,8 +4301,6 @@ parser generated by \menhir. What are these flags? In the absence of the
\menhirlib
is visible to the
\ocaml
compiler. If the support library
\menhirlib
was installed via
\ocamlfind
, a
\texttt
{
-package
}
directive is
issued; otherwise, a
\texttt
{
-I
}
directive is used.
% The file \distrib{demos/obsolete/Makefile.shared} shows how to exploit
% the \texttt{--suggest-*} switches.
\docswitch
{
\osuggestlinkb
}
This switch causes
\menhir
to print a set of
suggested link flags, and exit. These flags are intended to be passed to
...
...
@@ -4311,8 +4309,6 @@ the absence of the \otable switch, they are empty. When \otable is set, these
flags ensure that
\menhirlib
is linked in. If the support library
\menhirlib
was installed via
\ocamlfind
, a
\texttt
{
-linkpkg
}
directive is issued;
otherwise, the object file
\texttt
{
menhirLib.cmo
}
is named.
% The file \distrib{demos/obsolete/Makefile.shared} shows how to exploit
% the \texttt{--suggest-*} switches.
\docswitch
{
\osuggestlinko
}
This switch causes
\menhir
to print a set of
suggested link flags, and exit. These flags are intended to be passed to
...
...
@@ -4321,8 +4317,6 @@ flags? In the absence of the \otable switch, they are empty. When \otable is
set, these flags ensure that
\menhirlib
is linked in. If the support library
\menhirlib
was installed via
\ocamlfind
, a
\texttt
{
-linkpkg
}
directive is
issued; otherwise, the object file
\texttt
{
menhirLib.cmx
}
is named.
% The file \distrib{demos/obsolete/Makefile.shared} shows how to exploit
% the \texttt{--suggest-*} switches.
\docswitch
{
\osuggestmenhirlib
}
This switch causes
\menhir
to print (the
absolute path of) the directory where
\menhirlib
was installed. If
\menhirlib
...
...
@@ -4472,9 +4466,9 @@ time spent in the lexer and in the semantic actions.
\question
{
How do I write
\Makefile
rules for
\menhir
?
}
This can a bit tricky.
% understatement
If you must do this, see
\sref
{
sec:build
}
.
% and look at \distrib{demos/obsolete/Makefile.shared}.
It is recommended instead to use a build system
with built-in support for
\menhir
, such as
\ocamlbuild
or
\dune
.
with built-in support for
\menhir
, such as
\dune
(preferred)
or
\ocamlbuild
.
\question
{
How do I use
\menhir
with
\ocamlbuild
?
}
Pass
\verb
+
-use-ocamlfind -use-menhir
+
to
\ocamlbuild
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment