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

Tatsuya Nishiyama commented on SYSTEMML-639:
--------------------------------------------

I addressed in PR [#166 | https://github.com/apache/incubator-systemml/pull/166]

> Can't use semicolon after user-defined function in DML
> ------------------------------------------------------
>
>                 Key: SYSTEMML-639
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-639
>             Project: SystemML
>          Issue Type: Bug
>          Components: APIs
>            Reporter: Deron Eriksson
>            Priority: Minor
>
> This is valid:
> {code}
> x=1;print(x);
> printFoo=function(int y){print(y);}
> z=printFoo(x);
> {code}
> This is invalid:
> {code}
> x=1;print(x);
> printFoo=function(int y){print(y);};z=printFoo(x);
> {code}
> and generates:
> {code}
> The following parse issue was encountered:
> example.dml [line 2:35] [Syntax error] -> printFoo=function(int 
> y){print(y);};z=printFoo(x);
>    extraneous input ';' expecting {<EOF>, 'while', 'for', 'if', 'source', 
> 'setwd', 'parfor', '[', ID, COMMANDLINE_NAMED_ID, COMMANDLINE_POSITION_ID}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to