incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hama Wiki] Update of "Shell" by SamuelGuo
Date Sat, 20 Sep 2008 13:34:31 GMT
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>"'"
  }}}

Mime
View raw message