Removed comments and changed association between endpoint and input type
This commit is contained in:
parent
1eb97762f9
commit
a98ef3cebd
2 changed files with 6 additions and 6 deletions
|
@ -10,7 +10,7 @@ compoundFields : '(' compoundField (',' compoundField)* ')' ;
|
|||
compoundField : fieldName ':' fieldType ;
|
||||
fieldName : IDENTIFIER ;
|
||||
fieldType : IDENTIFIER ;
|
||||
endpoint : path '<' (compoundType | IDENTIFIER) ;
|
||||
endpoint : path '=<' (compoundType | IDENTIFIER) ;
|
||||
path : (pathSegment)+ ;
|
||||
pathSegment : '/' (IDENTIFIER|VALUE) ;
|
||||
|
||||
|
@ -18,7 +18,7 @@ pathSegment : '/' (IDENTIFIER|VALUE) ;
|
|||
fragment DIGIT : [0-9] ;
|
||||
fragment LOWERCASE : [a-z] ;
|
||||
fragment UPPERCASE : [A-Z] ;
|
||||
COMMENT : '/*' (IDENTIFIER|VALUE)* '*/' -> skip ;
|
||||
fragment GENERICS : '['|']'|'<'|'>' ;
|
||||
WS : [ \t\n\r]+ -> skip;
|
||||
IDENTIFIER : (LOWERCASE | UPPERCASE) (LOWERCASE | UPPERCASE | DIGIT)* ;
|
||||
VALUE : ~[ ,{}:()\n\t\r/<>"#';*]+ ;
|
||||
IDENTIFIER : (LOWERCASE | UPPERCASE) (LOWERCASE | UPPERCASE | DIGIT | GENERICS)* ;
|
||||
VALUE : ~[ ,{}:()/="#';*]+ ;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/some/endpoint < SomeType(foo:String)
|
||||
/some/other/endpoint < SomeOtherType(bar:Embedded)
|
||||
/some/endpoint =< SomeType(foo:String)
|
||||
/some/other/endpoint =< SomeOtherType(bar:Seq[Embedded])
|
Loading…
Add table
Reference in a new issue