[ 
https://issues.apache.org/jira/browse/UIMA-3115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13722470#comment-13722470
 ] 

Peter Klügl commented on UIMA-3115:
-----------------------------------

Hmm... I am currently thinking about introducing inlined rule elements or even 
rules, which match within the scope of another rule element. This would 
probably subsume your syntactic sugar and could look like:

{noformat}
Prefix Sentence{PARTOF(Paragraph) -> Type1}{ ANY{STARTSWITH(Sentence)} NUM{-> 
Type2}; NUM{-> Type3} ANY{ENDSWITH(Sentence)};} Suffix;
{noformat}
                
> fusion of block syntax and annotation specification syntax
> ----------------------------------------------------------
>
>                 Key: UIMA-3115
>                 URL: https://issues.apache.org/jira/browse/UIMA-3115
>             Project: UIMA
>          Issue Type: Improvement
>          Components: ruta
>            Reporter: Georg Fette
>            Priority: Minor
>
> It would be a nice syntax improvement if block definitions and annotation 
> specifications with curly brackets are written with the same syntax. I.e.:
> {noformat}
> Document { CW NUM { -> MARK(MyAnnot) } }
> {noformat}
> =
> {noformat}
> BLOCK(MyBlockName) Document { CW NUM { -> MARK(MyAnnot) } }
> {noformat}
> The style without the block syntax will be an anonymous block but that would 
> be okay.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to