Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hama Wiki" for change notification.
The following page has been changed by SamuelGuo: http://wiki.apache.org/hama/Shell ------------------------------------------------------------------------------ == Grammar == {{{ - <hamascript> := <expr> ";" + <hamaexpression> := <expr> ";" - <expr> := [<alias> "="] <baseexpr> ["MAP" <integer>] ["REDUCE" <integer>] | "SAVE" <saveexpr> + <expr> := <IDENTIFIER> "=" <basicoperation> ["MAP" <integer>] ["REDUCE" <integer>] | "SAVE" <IDENTIFIER> "AS" <filename> - <baseexpr> := <operationexpr> | "LOAD" <loadexpr> + <basicoperation> := <algebraop> | <loadop> | <randmatrixop> - <operationexpr> := <alias> | <operationexpr> <operations> <operationexpr> | "(" <operationexpr> ")" + <loadop> := "LOAD" <filename> "AS" <typename> "USING" <classname> - <operations> := "+" | "-" | "*" + <randmatrixop> := "MATRIX.RANDOM" <integer> <integer> - <loadexpr> := <filename> "as" <type> ["USING" <loadclass> ["MAP" <integer>] ["REDUCE" <integer>] ] + <algebraop> := <additiveop> - <type> := "matrix" + <additiveop> := <multiplicationop> ( ( "+" | "-" ) <multiplicationop> )* - <loadclass> := <quotedstring> + <multiplicationop> := <unaryop> ( "*" <unaryop> )* - <saveexpr> := <alias> "as" <filename> + <unaryop> := "(" <additiveop> ")" | <IDENTIFIER> + + <typename> := "matrix" <filename> := <quotedstring> + + <classname> := <quotedstring> <quotedstring> := "'"<string>"'" }}}
