Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
98a3a55b
Commit
98a3a55b
authored
8 months ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[doc] fix a few typos and add a ref. to External Module paragraph
parent
a9709201
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/developer/advance.tex
+11
-8
11 additions, 8 deletions
doc/developer/advance.tex
with
11 additions
and
8 deletions
doc/developer/advance.tex
+
11
−
8
View file @
98a3a55b
...
@@ -3912,13 +3912,14 @@ An extension is characterized by its introducing keyword \texttt{kw}, or
...
@@ -3912,13 +3912,14 @@ An extension is characterized by its introducing keyword \texttt{kw}, or
extensions is not possible, especially if they belong to different categories,
extensions is not possible, especially if they belong to different categories,
as this would lead to ambiguities in the parser. It is advised to prefix the
as this would lead to ambiguities in the parser. It is advised to prefix the
keyword with the plug-in that registers it, for example
keyword with the plug-in that registers it, for example
\lstinline
{
\wp
::strategy
}
, b
y doing this, one
as
sures that when the plug-in that
\lstinline
{
\wp
::strategy
}
. B
y doing this, one
en
sures that when the plug-in that
registers the extension is not available, the extension will be ignored (with a
registers the extension is not available, the extension will be ignored (with a
warning) and the parsing will continue.
warning) and the parsing will continue.
Once an extension is registered a clause of the form
\verb
|
kw e1,...,en;
|
, where each
\verb
|
ei
|
can be
Once an extension is registered with keyword
\lstinline
|kw|,
any syntactically valid ACSL term or predicate, will be treated by the parser as belonging to the
a clause of the form
\verb
|
kw e1,...,en;
|
,
extension
\verb
|
kw
|
.
where each
\verb
|
ei
|
can be any syntactically valid ACSL term or predicate,
will be treated by the parser as belonging to the extension
\verb
|
kw
|
.
Contract extension clauses must occur after
\verb
|
assumes
|
and
\verb
|
requires
|
clauses if any, but
Contract extension clauses must occur after
\verb
|
assumes
|
and
\verb
|
requires
|
clauses if any, but
can be freely mixed with other behavior clauses (post-conditions,
\verb
|
assigns
|
,
\verb
|
frees
|
and
can be freely mixed with other behavior clauses (post-conditions,
\verb
|
assigns
|
,
\verb
|
frees
|
and
...
@@ -3999,7 +4000,7 @@ Each function takes the following mandatory arguments:
...
@@ -3999,7 +4000,7 @@ Each function takes the following mandatory arguments:
The last function has a different behavior and is used to load external
The last function has a different behavior and is used to load external
\acsl
modules with the
\verb
+
import
+
clause. It is treated at the end
\acsl
modules with the
\verb
+
import
+
clause. It is treated at the end
of the section.
of the section
(see p.~
\pageref
{
par:ext-modules
}
)
.
During type-checking, the list
\verb
|
[e1;...;en]
|
will be given to
\verb
|
typer
|
,
During type-checking, the list
\verb
|
[e1;...;en]
|
will be given to
\verb
|
typer
|
,
together with the current typing environment (which allows discriminating
together with the current typing environment (which allows discriminating
...
@@ -4117,9 +4118,11 @@ version in the interface:
...
@@ -4117,9 +4118,11 @@ version in the interface:
\includegraphics
[width=\textwidth]
{
examples/acsl
_
extension
_
ext
_
types/acsl
_
extension
_
ext
_
types
}
\includegraphics
[width=\textwidth]
{
examples/acsl
_
extension
_
ext
_
types/acsl
_
extension
_
ext
_
types
}
\paragraph
{
External Modules.
}
Finally, let us introduce how to extend
\acsl
\paragraph
{
External Modules.
}
\label
{
par:ext-modules
}
Finally, let us introduce how to extend
\acsl
modules with external module importers. A typical usage is to import logical
modules with external module importers. A typical usage is to import logical
definitions from other languages, eg.
\textsf
{
Coq
}
or
\textsf
{
Why3
}
, as regular
definitions from other languages, e
.
g.
\textsf
{
Coq
}
or
\textsf
{
Why3
}
, as regular
\acsl
module definitions. From the user point the view, this takes the form
\acsl
module definitions. From the user point the view, this takes the form
of an extended
\verb
+
import
+
clause:
of an extended
\verb
+
import
+
clause:
...
@@ -4162,7 +4165,7 @@ their full-name identifier, for instance \verb+foo::bar::Jazz:f+
...
@@ -4162,7 +4165,7 @@ their full-name identifier, for instance \verb+foo::bar::Jazz:f+
in the example above.
in the example above.
As explained in the
\framac
source documentation, module importers might be
As explained in the
\framac
source documentation, module importers might be
invoked multiple times by the kernel, eg. when a given module is imported from
invoked multiple times by the kernel, e
.
g. when a given module is imported from
different source files. Although the loader itself can use memoization
different source files. Although the loader itself can use memoization
techniques to save time, the module builder shall be populated on every call.
techniques to save time, the module builder shall be populated on every call.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment