Skip to content

Commit

Permalink
Merge simplified version of the ROS DSL grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-nhg committed Mar 23, 2021
1 parent 9fd3d8d commit eeacfd1
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 515 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'ServiceSpec'=49
'Specs'=45
'String'=28
'Struc'=77
'Struct'=77
'Subscriber'=65
'Subscribers'=57
'TopicSpec'=52
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@SuppressWarnings("all")
public class InternalRosParser extends AbstractInternalContentAssistParser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_BINARY", "RULE_BOOLEAN", "RULE_DOUBLE", "RULE_DECINT", "RULE_DATE_TIME", "RULE_STRING", "RULE_ID", "RULE_ROS_CONVENTION_A", "RULE_MESSAGE_ASIGMENT", "RULE_ROS_CONVENTION_PARAM", "RULE_DIGIT", "RULE_DAY", "RULE_MONTH", "RULE_YEAR", "RULE_HOUR", "RULE_MIN_SEC", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'GraphName'", "'node'", "'Header'", "'String'", "'goal'", "'message'", "'result'", "'feedback'", "'name'", "'value'", "'service'", "'type'", "'action'", "'duration'", "'time'", "'PackageSet'", "'{'", "'}'", "','", "'Package'", "'Specs'", "'Artifact'", "'CatkinPackage'", "'Dependencies'", "'ServiceSpec'", "'request'", "'response'", "'TopicSpec'", "'ActionSpec'", "'Node'", "'ServiceServers'", "'Publishers'", "'Subscribers'", "'ServiceClients'", "'ActionServers'", "'ActionClients'", "'Parameters'", "'ServiceServer'", "'namespace'", "'Publisher'", "'Subscriber'", "'ServiceClient'", "'ActionServer'", "'ActionClient'", "'PackageDependency'", "'ExternalDependency'", "'GlobalNamespace'", "'parts'", "'RelativeNamespace'", "'PrivateNamespace'", "'Parameter'", "'List'", "'Struc'", "'Integer'", "'default'", "'Double'", "'Boolean'", "'Base64'", "'Array'", "'ParameterAny'", "'ParameterStructMember'", "'bool'", "'int8'", "'uint8'", "'int16'", "'uint16'", "'int32'", "'uint32'", "'int64'", "'uint64'", "'float32'", "'float64'", "'string'", "'byte'", "'bool[]'", "'int8[]'", "'uint8[]'", "'int16[]'", "'uint16[]'", "'int32[]'", "'uint32[]'", "'int64[]'", "'uint64[]'", "'float32[]'", "'float64[]'", "'string[]'", "'byte[]'", "'[]'"
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_BINARY", "RULE_BOOLEAN", "RULE_DOUBLE", "RULE_DECINT", "RULE_DATE_TIME", "RULE_STRING", "RULE_ID", "RULE_ROS_CONVENTION_A", "RULE_MESSAGE_ASIGMENT", "RULE_ROS_CONVENTION_PARAM", "RULE_DIGIT", "RULE_DAY", "RULE_MONTH", "RULE_YEAR", "RULE_HOUR", "RULE_MIN_SEC", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'GraphName'", "'node'", "'Header'", "'String'", "'goal'", "'message'", "'result'", "'feedback'", "'name'", "'value'", "'service'", "'type'", "'action'", "'duration'", "'time'", "'PackageSet'", "'{'", "'}'", "','", "'Package'", "'Specs'", "'Artifact'", "'CatkinPackage'", "'Dependencies'", "'ServiceSpec'", "'request'", "'response'", "'TopicSpec'", "'ActionSpec'", "'Node'", "'ServiceServers'", "'Publishers'", "'Subscribers'", "'ServiceClients'", "'ActionServers'", "'ActionClients'", "'Parameters'", "'ServiceServer'", "'namespace'", "'Publisher'", "'Subscriber'", "'ServiceClient'", "'ActionServer'", "'ActionClient'", "'PackageDependency'", "'ExternalDependency'", "'GlobalNamespace'", "'parts'", "'RelativeNamespace'", "'PrivateNamespace'", "'Parameter'", "'List'", "'Struct'", "'Integer'", "'default'", "'Double'", "'Boolean'", "'Base64'", "'Array'", "'ParameterAny'", "'ParameterStructMember'", "'bool'", "'int8'", "'uint8'", "'int16'", "'uint16'", "'int32'", "'uint32'", "'int64'", "'uint64'", "'float32'", "'float64'", "'string'", "'byte'", "'bool[]'", "'int8[]'", "'uint8[]'", "'int16[]'", "'uint16[]'", "'int32[]'", "'uint32[]'", "'int64[]'", "'uint64[]'", "'float32[]'", "'float64[]'", "'string[]'", "'byte[]'", "'[]'"
};
public static final int T__50=50;
public static final int RULE_DATE_TIME=8;
Expand Down Expand Up @@ -31440,21 +31440,21 @@ public final void rule__ParameterStructType__Group__1() throws RecognitionExcept


// $ANTLR start "rule__ParameterStructType__Group__1__Impl"
// InternalRos.g:10373:1: rule__ParameterStructType__Group__1__Impl : ( 'Struc' ) ;
// InternalRos.g:10373:1: rule__ParameterStructType__Group__1__Impl : ( 'Struct' ) ;
public final void rule__ParameterStructType__Group__1__Impl() throws RecognitionException {

int stackSize = keepStackSize();

try {
// InternalRos.g:10377:1: ( ( 'Struc' ) )
// InternalRos.g:10378:1: ( 'Struc' )
// InternalRos.g:10377:1: ( ( 'Struct' ) )
// InternalRos.g:10378:1: ( 'Struct' )
{
// InternalRos.g:10378:1: ( 'Struc' )
// InternalRos.g:10379:2: 'Struc'
// InternalRos.g:10378:1: ( 'Struct' )
// InternalRos.g:10379:2: 'Struct'
{
before(grammarAccess.getParameterStructTypeAccess().getStrucKeyword_1());
before(grammarAccess.getParameterStructTypeAccess().getStructKeyword_1());
match(input,77,FOLLOW_2);
after(grammarAccess.getParameterStructTypeAccess().getStrucKeyword_1());
after(grammarAccess.getParameterStructTypeAccess().getStructKeyword_1());

}

Expand Down Expand Up @@ -46790,4 +46790,4 @@ public String getDescription() {
public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});

}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'ServiceSpec'=35
'Specs'=30
'String'=40
'Struc'=74
'Struct'=74
'Subscriber'=59
'Subscribers'=50
'TopicSpec'=38
Expand Down
Loading

0 comments on commit eeacfd1

Please sign in to comment.