Skip to content

Commit 63beeda

Browse files
committed
Merge simplified version of the ROS DSL grammar
1 parent d6a2ec3 commit 63beeda

5 files changed

Lines changed: 15 additions & 24 deletions

File tree

plugins/de.fraunhofer.ipa.ros.xtext.ide/src-gen/de/fraunhofer/ipa/ros/ide/contentassist/antlr/internal/InternalRosLexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5047,4 +5047,4 @@ public int specialStateTransition(int s, IntStream _input) throws NoViableAltExc
50475047
}
50485048

50495049

5050-
}
5050+
}

plugins/de.fraunhofer.ipa.ros.xtext.ide/src-gen/de/fraunhofer/ipa/ros/ide/contentassist/antlr/internal/InternalRosParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46060,4 +46060,4 @@ public String getDescription() {
4606046060
public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000008000000L});
4606146061
public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});
4606246062

46063-
}
46063+
}

plugins/de.fraunhofer.ipa.ros.xtext/src-gen/de/fraunhofer/ipa/ros/parser/antlr/internal/InternalRosLexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5047,4 +5047,4 @@ public int specialStateTransition(int s, IntStream _input) throws NoViableAltExc
50475047
}
50485048

50495049

5050-
}
5050+
}

plugins/de.fraunhofer.ipa.ros.xtext/src-gen/de/fraunhofer/ipa/ros/parser/antlr/internal/InternalRosParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14619,4 +14619,4 @@ public String getDescription() {
1461914619
public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x4100BA0000001030L,0x0000000600040100L});
1462014620
public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});
1462114621

14622-
}
14622+
}

plugins/de.fraunhofer.ipa.ros.xtext/src-gen/de/fraunhofer/ipa/ros/serializer/RosSemanticSequencer.java

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ protected void sequence_ArrayTopicSpecRef(ISerializationContext context, ArrayTo
394394
* Artifact returns Artifact
395395
*
396396
* Constraint:
397-
* (name=RosNames (node=Node | node=Node)?)
397+
* (name=RosNames node=Node?)
398398
*/
399399
protected void sequence_Artifact(ISerializationContext context, Artifact semanticObject) {
400400
genericSequencer.createSequence(context, semanticObject);
@@ -407,12 +407,7 @@ protected void sequence_Artifact(ISerializationContext context, Artifact semanti
407407
* CatkinPackage returns CatkinPackage
408408
*
409409
* Constraint:
410-
* (
411-
* name=RosNames
412-
* ((spec+=SpecBase spec+=SpecBase*) | (spec+=SpecBase spec+=SpecBase*))?
413-
* ((artifact+=Artifact artifact+=Artifact*) | (artifact+=Artifact artifact+=Artifact*))?
414-
* ((dependency+=Dependency dependency+=Dependency*) | (dependency+=Dependency dependency+=Dependency*))?
415-
* )
410+
* (name=RosNames (spec+=SpecBase spec+=SpecBase*)? (artifact+=Artifact artifact+=Artifact*)? (dependency+=Dependency dependency+=Dependency*)?)
416411
*/
417412
protected void sequence_CatkinPackage(ISerializationContext context, CatkinPackage semanticObject) {
418413
genericSequencer.createSequence(context, semanticObject);
@@ -495,13 +490,13 @@ protected void sequence_MessagePart(ISerializationContext context, MessagePart s
495490
* Constraint:
496491
* (
497492
* name=RosNames
498-
* ((serviceserver+=ServiceServer serviceserver+=ServiceServer*) | (serviceserver+=ServiceServer serviceserver+=ServiceServer*))?
499-
* ((publisher+=Publisher publisher+=Publisher*) | (publisher+=Publisher publisher+=Publisher*))?
500-
* ((subscriber+=Subscriber subscriber+=Subscriber*) | (subscriber+=Subscriber subscriber+=Subscriber*))?
501-
* ((serviceclient+=ServiceClient serviceclient+=ServiceClient*) | (serviceclient+=ServiceClient serviceclient+=ServiceClient*))?
502-
* ((actionserver+=ActionServer actionserver+=ActionServer*) | (actionserver+=ActionServer actionserver+=ActionServer*))?
503-
* ((actionclient+=ActionClient actionclient+=ActionClient*) | (actionclient+=ActionClient actionclient+=ActionClient*))?
504-
* ((parameter+=Parameter parameter+=Parameter*) | (parameter+=Parameter parameter+=Parameter*))?
493+
* (serviceserver+=ServiceServer serviceserver+=ServiceServer*)?
494+
* (publisher+=Publisher publisher+=Publisher*)?
495+
* (subscriber+=Subscriber subscriber+=Subscriber*)?
496+
* (serviceclient+=ServiceClient serviceclient+=ServiceClient*)?
497+
* (actionserver+=ActionServer actionserver+=ActionServer*)?
498+
* (actionclient+=ActionClient actionclient+=ActionClient*)?
499+
* (parameter+=Parameter parameter+=Parameter*)?
505500
* )
506501
*/
507502
protected void sequence_Node(ISerializationContext context, Node semanticObject) {
@@ -533,7 +528,7 @@ protected void sequence_PackageDependency(ISerializationContext context, Package
533528
* PackageSet returns PackageSet
534529
*
535530
* Constraint:
536-
* ((package+=Package package+=Package*) | (package+=Package package+=Package*))?
531+
* (package+=Package package+=Package*)?
537532
*/
538533
protected void sequence_PackageSet(ISerializationContext context, PackageSet semanticObject) {
539534
genericSequencer.createSequence(context, semanticObject);
@@ -546,11 +541,7 @@ protected void sequence_PackageSet(ISerializationContext context, PackageSet sem
546541
* Package_Impl returns Package
547542
*
548543
* Constraint:
549-
* (
550-
* name=EString
551-
* ((spec+=SpecBase spec+=SpecBase*) | (spec+=SpecBase spec+=SpecBase*))?
552-
* ((artifact+=Artifact artifact+=Artifact*) | (artifact+=Artifact artifact+=Artifact*))?
553-
* )
544+
* (name=EString (spec+=SpecBase spec+=SpecBase*)? (artifact+=Artifact artifact+=Artifact*)?)
554545
*/
555546
protected void sequence_Package_Impl(ISerializationContext context, ros.Package semanticObject) {
556547
genericSequencer.createSequence(context, semanticObject);

0 commit comments

Comments
 (0)