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
11
Issues
11
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
dcdf39b0
Commit
dcdf39b0
authored
Apr 06, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the fact that a %public symbol can now be split, even inside a single .mly file.
parent
9195aadb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
CHANGES.md
CHANGES.md
+4
-0
TODO
TODO
+0
-1
doc/main.tex
doc/main.tex
+5
-4
No files found.
CHANGES.md
View file @
dcdf39b0
...
@@ -20,6 +20,10 @@
...
@@ -20,6 +20,10 @@
ignored by Menhir's back-ends, but are written to
`.cmly`
files, thus
ignored by Menhir's back-ends, but are written to
`.cmly`
files, thus
can be exploited by external tools via MenhirSdk. (Suggested by Frédéric Bour.)
can be exploited by external tools via MenhirSdk. (Suggested by Frédéric Bour.)
*
The definition of a %public nonterminal symbol can now be split into several
parts within a single .mly file. (This used to be permitted only over
multiple .mly files.) (Suggested by Frédéric Bour.)
*
Improved the syntax error message that is displayed when a
`.mly`
file
*
Improved the syntax error message that is displayed when a
`.mly`
file
is incorrect: the previous and next token are shown.
is incorrect: the previous and next token are shown.
...
...
TODO
View file @
dcdf39b0
* Document the recent additions (CHANGES + doc).
* Document the recent additions (CHANGES + doc).
- ability to split a %public symbol, even within a single unit
- menhirLib: new functions
- menhirLib: new functions
loop_handle_undo, shifts, acceptable
loop_handle_undo, shifts, acceptable
find_default_reduction
find_default_reduction
...
...
doc/main.tex
View file @
dcdf39b0
...
@@ -794,10 +794,11 @@ public, that is, if either its definition carries the keyword \dpublic or
...
@@ -794,10 +794,11 @@ public, that is, if either its definition carries the keyword \dpublic or
$
N
$
is declared to be a start symbol. A public nonterminal symbol is never
$
N
$
is declared to be a start symbol. A public nonterminal symbol is never
renamed, so it can be referred to by modules other than its defining module.
renamed, so it can be referred to by modules other than its defining module.
In fact, it is even permitted to split the definition of a public nonterminal
In fact, it is permitted to split the definition of a
\emph
{
public
}
nonterminal
symbol over multiple modules. That is, a public nonterminal symbol
$
N
$
can
symbol, over multiple modules and/or within a single module.
have multiple definitions in distinct modules. When the modules are joined,
That is, a public nonterminal symbol
$
N
$
can
the definitions are joined as well, using the choice (
\barre
) operator. This
have multiple definitions, within one module and/or in distinct modules.
All of these definitions are joined using the choice (
\barre
) operator. This
feature allows splitting a grammar specification in a manner that is
feature allows splitting a grammar specification in a manner that is
independent of the grammar's structure. For instance, in the grammar of a
independent of the grammar's structure. For instance, in the grammar of a
programming language, the definition of the nonterminal symbol
\nt
{
expression
}
programming language, the definition of the nonterminal symbol
\nt
{
expression
}
...
...
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