19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

let_fun<br />

-> let_fun_list<br />

let_fun_list<br />

-> fn_def<br />

-> fn_def br let_fun_list<br />

let_mutable<br />

-> "var" w lvals<br />

-> "var" w lvals s "=" w no_newline_expr<br />

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

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

let_immutable<br />

-> typed_lvals<br />

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

tuple_lvals<br />

-> "(" w ids w ")" s ":" s type_ref<br />

-> "(" w ids w ")" s ":" s "(" w type_refs w ")"<br />

lvals<br />

-> lval<br />

-> "(" w comma_sep_lvals w ")"<br />

-> tuple_lvals<br />

typed_lvals<br />

-> typed_lval<br />

-> "(" w comma_sep_typed_lvals w ")"<br />

-> tuple_lvals<br />

comma_sep_lvals<br />

-> lval<br />

-> lval w "," w comma_sep_lvals<br />

comma_sep_typed_lvals<br />

-> typed_lval<br />

-> typed_lval w "," w comma_sep_typed_lvals<br />

lval<br />

-> typed_lval<br />

-> id<br />

-> unpasting<br />

typed_lval<br />

-> id s ":" s type_ref<br />

unpasting<br />

-> "[" w unpasting_elems w "]"<br />

unpasting_elems<br />

-> unpasting_elem<br />

398

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

Saved successfully!

Ooh no, something went wrong!