Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Cosmos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Benoit Barbot
Cosmos
Commits
c4cca8ea
Commit
c4cca8ea
authored
Sep 16, 2019
by
Benoit Barbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p
parent
b3a6ac10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/ModelGenerator/GspnParser/Gspn-parser.yy
src/ModelGenerator/GspnParser/Gspn-parser.yy
+6
-3
No files found.
src/ModelGenerator/GspnParser/Gspn-parser.yy
View file @
c4cca8ea
...
...
@@ -236,7 +236,7 @@ NbTransitions: NbTr EQ ival SEMICOLON {Reader.spn->tr=$3;
PlacesList: PList EQ '{' PLabels '}' SEMICOLON {
if(Reader.spn->PlacesId.size()!=Reader.spn->pl){
std::cout<<"Place label missing or redeclared, please check your places list"
<<std::endl;
std::cout<<"Place label missing or redeclared, expected:"<< Reader.spn->pl <<"; found: "<< Reader.spn->PlacesId.size()
<<std::endl;
YYABORT;
}
...
...
@@ -249,6 +249,7 @@ PlacesList: PList EQ '{' PLabels '}' SEMICOLON {
};
PLabels : str {
//cout << "New place name:" << *$1 << endl;
place p;
p.name = *$1;
p.id = Reader.spn->placeStruct.size();
...
...
@@ -257,6 +258,8 @@ PLabels : str {
Reader.spn->PlacesId[*$1]=sz;
}
|PLabels COMMA str {
//cout << "New place name:" << *$3 << endl;
place p;
p.name = *$3;
p.id = Reader.spn->placeStruct.size();
...
...
@@ -267,8 +270,8 @@ PLabels : str {
TransitionsList: TList EQ '{' TLabels '}' SEMICOLON {
if(Reader.spn->TransList.size()!=Reader.spn->tr){
std::cout<<"Transition label missing or redeclared, please check your transitions list"<<std::
endl;
YYABORT;
std::cout<<"Transition label missing or redeclared, expected:"<< Reader.spn->tr <<"; found: "<< Reader.spn->TransList.size() <<
endl;
YYABORT;
}
};
...
...
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