19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

id_opt<br />

-><br />

-> w id<br />

with_opt<br />

-><br />

-> w "with" w expr<br />

no_newline_with_opt<br />

-><br />

-> w "with" w no_newline_expr<br />

tuple_expr<br />

-> "(" w expr w "," w comma_sep_exprs w ")"<br />

object_expr<br />

-> "object" extends_opt obj_body_opt w "end"<br />

no_newline_fn_expr<br />

-> "fn" w params is_ret_type_opt throws_opt w "=>" w<br />

no_newline_expr<br />

fn_expr<br />

-> "fn" w params is_ret_type_opt throws_opt w "=>" w expr<br />

no_newline_accumulator<br />

-> "SUM" w "[" w generators w "]" w no_newline_expr<br />

-> "PRODUCT" w "[" w generators w "]" w no_newline_expr<br />

-> "BIG" w op_or_enc w "[" w generators w "]" w no_newline_expr<br />

accumulator<br />

-> "SUM" w "[" w generators w "]" w expr<br />

-> "PRODUCT" w "[" w generators w "]" w expr<br />

-> "BIG" w op_or_enc w "[" w generators w "]" w expr<br />

no_space_assignment_expr<br />

-> no_space_expr ":=" no_space_expr<br />

-> no_space_expr assign_op no_space_expr<br />

no_newline_assignment_expr<br />

-> no_newline_expr s ":=" w no_newline_expr<br />

-> no_newline_expr s assign_op w no_newline_expr<br />

assignment_expr<br />

-> expr w ":=" w expr<br />

-> expr w assign_op w expr<br />

let_expr<br />

-> let_mutable<br />

-> let_immutable<br />

-> let_fun<br />

397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!