Removed comments and changed association between endpoint and input type

This commit is contained in:
Johan Maasing 2025-04-05 09:17:58 +02:00
parent 1eb97762f9
commit a98ef3cebd
2 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ compoundFields : '(' compoundField (',' compoundField)* ')' ;
compoundField : fieldName ':' fieldType ; compoundField : fieldName ':' fieldType ;
fieldName : IDENTIFIER ; fieldName : IDENTIFIER ;
fieldType : IDENTIFIER ; fieldType : IDENTIFIER ;
endpoint : path '<' (compoundType | IDENTIFIER) ; endpoint : path '=<' (compoundType | IDENTIFIER) ;
path : (pathSegment)+ ; path : (pathSegment)+ ;
pathSegment : '/' (IDENTIFIER|VALUE) ; pathSegment : '/' (IDENTIFIER|VALUE) ;
@ -18,7 +18,7 @@ pathSegment : '/' (IDENTIFIER|VALUE) ;
fragment DIGIT : [0-9] ; fragment DIGIT : [0-9] ;
fragment LOWERCASE : [a-z] ; fragment LOWERCASE : [a-z] ;
fragment UPPERCASE : [A-Z] ; fragment UPPERCASE : [A-Z] ;
COMMENT : '/*' (IDENTIFIER|VALUE)* '*/' -> skip ; fragment GENERICS : '['|']'|'<'|'>' ;
WS : [ \t\n\r]+ -> skip; WS : [ \t\n\r]+ -> skip;
IDENTIFIER : (LOWERCASE | UPPERCASE) (LOWERCASE | UPPERCASE | DIGIT)* ; IDENTIFIER : (LOWERCASE | UPPERCASE) (LOWERCASE | UPPERCASE | DIGIT | GENERICS)* ;
VALUE : ~[ ,{}:()\n\t\r/<>"#';*]+ ; VALUE : ~[ ,{}:()/="#';*]+ ;

View file

@ -1,2 +1,2 @@
/some/endpoint < SomeType(foo:String) /some/endpoint =< SomeType(foo:String)
/some/other/endpoint < SomeOtherType(bar:Embedded) /some/other/endpoint =< SomeOtherType(bar:Seq[Embedded])