Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
a1f4692b
Commit
a1f4692b
authored
Oct 25, 2018
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document attribute declarations in Figure 1 of the manual.
parent
65f22b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
doc/manual.tex
doc/manual.tex
+16
-0
No files found.
doc/manual.tex
View file @
a1f4692b
...
...
@@ -368,6 +368,8 @@ must be fully qualified.
&&
\dright
\sepspacelist
{
\nt
{
uid
}}
\\
&&
\dtype
\ocamltype
\sepspacelist
{
\nt
{
lid
}}
\\
&&
\dstart
\optional
{
\ocamltype
}
\sepspacelist
{
\nt
{
lid
}}
\\
&&
\dattribute
\sepspacelist
{
\nt
{
actual
}}
\sepspacelist
{
\nt
{
attribute
}}
\\
&&
\kw
{
\%
}
\nt
{
attribute
}
\\
% a grammar-wide attribute
&&
\donerrorreduce
\sepspacelist
{
\nt
{
lid
}}
\\
\nt
{
rule
}
\is
...
...
@@ -392,6 +394,10 @@ must be fully qualified.
\nt
{
id
}
\optional
{
\dlpar\sepcommalist
{
\nt
{
actual
}}
\drpar
}
\\
&&
\nt
{
actual
}
\optional
{
\dquestion
\barre
\dplus
\barre
\dstar
}
\\
&&
\seplist
{
\ \barre
}{
\nt
{
group
}}
% not really allowed everywhere
\\
\nt
{
attribute
}
\is
\kw
{
[@
}
\nt
{
name
}
\nt
{
payload
}
\kw
{
]
}
\end{tabular}
\end{center}
...
...
@@ -517,6 +523,16 @@ of $\nt{lid}_1, \ldots, \nt{lid}_n$ becomes the name of a function whose
signature is published in the
\mli
file and that can be used to invoke
the parser.
\subsubsection
{
Attribute declarations
}
Attribute declarations
of the form
\dattribute
\sepspacelist
{
\nt
{
actual
}}
\sepspacelist
{
\nt
{
attribute
}}
and
\kw
{
\%
}
\nt
{
attribute
}
are explained
in
\sref
{
sec:attributes
}
.
\subsubsection
{
Extra reductions on error
}
\label
{
sec:onerrorreduce
}
...
...
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