uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-3910) Compile time error in INT variable
Date Mon, 23 Jun 2014 09:23:24 GMT

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

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

The problems are caused by some flaws of the AST parser of the editor. Variables for number
enforce sometimes extra parentheses. For strings, they need to be concatenated. I will try
to fix this sometimes.

Until then, you could rewrite your script in order to avoid the reported problems:
{noformat}
INT count1;
DECLARE Type, Type2;
Document{COUNT(Type,count1)};
Document{->LOG(""+(count1))};
Type{IF((count1 == 1))->MARK(Type2)}
{noformat}

> Compile time error in INT variable
> ----------------------------------
>
>                 Key: UIMA-3910
>                 URL: https://issues.apache.org/jira/browse/UIMA-3910
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>            Reporter: Asad Abbas
>            Assignee: Peter Klügl
>
> Hi,
> I am using following code and getting a compile error.
> INT count1;
> Document{COUNT(Type,count1)};
> Document{->LOG(count1)};
> Type{IF(count1 == 1)->MARK(Type2)};
> In last two lines having compile time error on variable count1 . it says 
> Multiple markers:
> -Syntax error: count1
> -Variable "" not defined in this script or block!
> -Mismatched Input: Expecting "RPAREN" but found "count1".
> Please look into it.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message