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
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
121
Issues
121
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
c52c0f13
Commit
c52c0f13
authored
May 27, 2013
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow program declarations inside namespaces
parent
356cae5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/parser/parser.mly
src/parser/parser.mly
+10
-0
No files found.
src/parser/parser.mly
View file @
c52c0f13
...
...
@@ -282,6 +282,7 @@ theory:
list0_decl
:
|
/*
epsilon
*/
{
()
}
|
new_decl
list0_decl
{
()
}
|
new_ns_th
list0_decl
{
()
}
;
new_decl
:
...
...
@@ -289,6 +290,9 @@ new_decl:
{
Incremental
.
new_decl
(
floc
()
)
$
1
}
|
use_clone
{
Incremental
.
use_clone
(
floc
()
)
$
1
}
;
new_ns_th
:
|
namespace_head
list0_decl
END
{
Incremental
.
close_namespace
(
floc_i
1
)
$
1
}
;
...
...
@@ -1076,12 +1080,18 @@ list0_pdecl:
|
/*
epsilon
*/
{
()
}
|
new_decl
list0_pdecl
{
()
}
|
new_pdecl
list0_pdecl
{
()
}
|
new_ns_mo
list0_pdecl
{
()
}
;
new_pdecl
:
|
pdecl
{
Incremental
.
new_pdecl
(
floc
()
)
$
1
}
;
new_ns_mo
:
|
namespace_head
list0_pdecl
END
{
Incremental
.
close_namespace
(
floc_i
1
)
$
1
}
;
pdecl
:
|
LET
top_ghost
lident_rich
labels
fun_defn
{
Dlet
(
add_lab
$
3
$
4
,
$
2
,
$
5
)
}
...
...
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