Skip to content
Snippets Groups Projects
Commit 0cc1048e authored by Johannes Mey's avatar Johannes Mey
Browse files

WIP

parent 0f8bf9c8
No related branches found
No related tags found
No related merge requests found
Pipeline #6491 passed
......@@ -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$_]*
......
Model ::= RobotArm ZoneModel ;
Model ::= RobotArm ZoneModel ; // comment 1
// comment 2
ZoneModel ::= Size:Position SafetyZone:Zone*;
Zone ::= Position*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment