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
V
visitors
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
visitors
Commits
f9b10aec
Commit
f9b10aec
authored
Apr 20, 2017
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document [visit_prefix].
parent
b059e006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
doc/macros.tex
doc/macros.tex
+3
-0
doc/main.tex
doc/main.tex
+16
-0
No files found.
doc/macros.tex
View file @
f9b10aec
...
...
@@ -118,3 +118,6 @@
\newcommand
{
\data
}{
\texttt
{
data
}
\xspace
}
\newcommand
{
\nude
}{
\texttt
{
nude
}
\xspace
}
\newcommand
{
\polymorphic
}{
\texttt
{
polymorphic
}
\xspace
}
\newcommand
{
\visitprefix
}{
\texttt
{
visit
\_
prefix
}
\xspace
}
\newcommand
{
\buildprefix
}{
\texttt
{
build
\_
prefix
}
\xspace
}
\newcommand
{
\failprefix
}{
\texttt
{
fail
\_
prefix
}
\xspace
}
doc/main.tex
View file @
f9b10aec
...
...
@@ -1790,6 +1790,11 @@ programming languages, but also in an object-oriented programming setting.
unless
\nude
is
\texttt
{
true
}
.
Every ancestor class must have exactly
\emph
{
one
}
type parameter,
which is typically (but not necessarily) the type of ``self''.
\\
\buildprefix
&
(string)
&
The prefix that is used in the name of the build methods in
\fold
and
\foldtwo
visitors (
\sref
{
sec:intro:fold
}
).
This is an optional parameter, whose default value is ``
\texttt
{
build
\_
}
''.
\\
\concrete
&
(Boolean)
&
If
\texttt
{
true
}
, the generated class is declared
...
...
@@ -1800,6 +1805,11 @@ programming languages, but also in an object-oriented programming setting.
If
\texttt
{
true
}
, one visitor method is generated for every data constructor (
\sref
{
sec:structure
}
).
If
\texttt
{
false
}
, this method is not generated (it is inlined instead).
This is an optional parameter; its default value is
\texttt
{
true
}
.
\\
\failprefix
&
(string)
&
The prefix that is used in the name of the failure methods in
visitors of arity two (
\sref
{
sec:intro:aritytwo
}
).
This is an optional parameter, whose default value is ``
\texttt
{
fail
\_
}
''.
\\
\irregular
&
(Boolean)
&
If
\texttt
{
true
}
, the regularity check (
\sref
{
sec:regularity
}
) is disabled;
...
...
@@ -1845,6 +1855,12 @@ programming languages, but also in an object-oriented programming setting.
\mapreducetwo
,
\foldtwo
(
\sref
{
sec:intro:aritytwo
}
).
\\
\visitprefix
&
(string)
&
The prefix that is used in the name of visitor methods.
This is an optional parameter, whose default value is ``
\texttt
{
visit
\_
}
''.
Be aware that, if this prefix is changed, then the classes provided by the
library
\texttt
{
VisitorsRuntime
}
become useless: in that case, one might wish to
also specify
\verb
+
nude = true
+
, so as to not inherit these classes.
\end{tabular}
\vspace
{
2.5mm
}
\hrule
...
...
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