Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
b08df5a9
Commit
b08df5a9
authored
May 23, 2018
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement and document --infer-protocol-supported.
parent
0eecba45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
doc/macros.tex
doc/macros.tex
+1
-0
doc/main.tex
doc/main.tex
+10
-0
src/settings.ml
src/settings.ml
+1
-0
No files found.
doc/macros.tex
View file @
b08df5a9
...
...
@@ -135,6 +135,7 @@
\newcommand
{
\oinfer
}{
\oo
{
infer
}}
\newcommand
{
\oinferwrite
}{
\oo
{
infer-write-query
}}
\newcommand
{
\oinferread
}{
\oo
{
infer-read-reply
}}
\newcommand
{
\oinferprotocolsupported
}{
\oo
{
infer-protocol-supported
}}
\newcommand
{
\oinspection
}{
\oo
{
inspection
}}
\newcommand
{
\ointerpret
}{
\oo
{
interpret
}}
\newcommand
{
\ointerpretshowcst
}{
\oo
{
interpret-show-cst
}}
...
...
doc/main.tex
View file @
b08df5a9
...
...
@@ -3839,6 +3839,16 @@ assumes that the file \nt{sigfilename} contains the result of running
so as to obtain the
\ocaml
type of every semantic action, then proceeds
normally to generate a parser.
\docskip
This protocol was introduced on 2018/05/23; earlier versions of
\menhir
do not
support it. Its existence can be tested as follows:
\docswitch
{
\oinferprotocolsupported
}
When invoked with this switch,
\menhir
immediately terminates with exit code 0. An earlier version
of
\menhir
, which does not support this protocol, would display a
help message and terminate with a nonzero exit code.
\subsection
{
Compilation flags
}
\label
{
sec:build:flags
}
...
...
src/settings.ml
View file @
b08df5a9
...
...
@@ -307,6 +307,7 @@ let options = Arg.align [
"--follow-construction"
,
Arg
.
Set
follow
,
" (undocumented)"
;
"--graph"
,
Arg
.
Set
graph
,
" Write a dependency graph to a .dot file"
;
"--infer"
,
Arg
.
Unit
enable_infer
,
" Invoke ocamlc to do type inference"
;
"--infer-protocol-supported"
,
Arg
.
Unit
(
fun
()
->
exit
0
)
,
" Stop with exit code 0"
;
"--infer-write-query"
,
Arg
.
String
enable_write_query
,
"<filename> Write mock .ml file"
;
"--infer-read-reply"
,
Arg
.
String
enable_read_reply
,
"<filename> Read inferred .mli file"
;
"--inspection"
,
Arg
.
Set
inspection
,
" Generate the inspection API"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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