You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2014/06/23 11:23:24 UTC
[jira] [Commented] (UIMA-3910) Compile time error in INT variable
[ 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)