Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
JastAdd
ros2rag
Commits
0cc1048e
Commit
0cc1048e
authored
Apr 16, 2020
by
Johannes Mey
Browse files
WIP
parent
0f8bf9c8
Pipeline
#6491
passed with stage
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ros2rag.base/src/main/jastadd/RelAst.flex
View file @
0cc1048e
...
...
@@ -35,10 +35,11 @@ import org.jastadd.ros2rag.parser.RelAstParser.Terminals;
}
%}
WhiteSpace
=
[
]
|
\
t
|
\
f
|
\
n
|
\
r
|
\
r
\
n
WhiteSpace
=
[
]
|
\
t
|
\
f
Newline
=
\
n
|
\
r
|
\
r
\
n
TraditionalComment
=
[/][*][^*]*[*]+([^*/][^*]*[*]+)*[/]
EndOfLineComment
=
"//"
[^\
n
\
r
]*
Comment
=
{
TraditionalComment
}
|
{
EndOfLineComment
}
Comment
=
{
TraditionalComment
}
|
{
EndOfLineComment
}
|
{
Newline
}
ID
=
[
a
-
zA
-
Z
$
_
][
a
-
zA
-
Z0
-
9
$
_
]*
...
...
ros2rag.base/src/test/resources/MinimalExample.relast
View file @
0cc1048e
Model ::= RobotArm ZoneModel ;
Model ::= RobotArm ZoneModel ;
// comment 1
// comment 2
ZoneModel ::= Size:Position SafetyZone:Zone*;
Zone ::= Position*;
...
...
Write
Preview
Supports
Markdown
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