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.

-> fn_decl<br />

-> object_decl<br />

-> var_decl<br />

-> def_or_decl<br />

defs_opt<br />

-><br />

-> w defs<br />

defs<br />

-> def<br />

-> def br defs<br />

def<br />

-> trait_def<br />

-> fn_def<br />

-> object_def<br />

-> var_def<br />

-> def_or_decl<br />

var_decl<br />

-> mods_opt id w is_type<br />

var_def<br />

-> mods_opt id is_type_opt w "=" w no_newline_expr<br />

-> mods_opt id w ":" w type_ref w ":=" w no_newline_expr<br />

is_type_opt<br />

-><br />

-> w is_type<br />

is_type<br />

-> ":" w type_ref<br />

type_ref<br />

-> arg_type w "->" w ret_type throws_opt<br />

-> simple_type_ref<br />

simple_type_ref<br />

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

-> dotted<br />

-> simple_type_ref w "[\" w type_args w "\]"<br />

-> type_ref w "[" w array_indices w "]"<br />

-> type_ref "ˆ" nat_type<br />

-> type_ref "ˆ" "(" w extent_range_minus_nat w ")"<br />

-> type_ref "ˆ" "(" w extent_range w "BY" w extent_range w ")"<br />

-> type_ref w "..."<br />

-> "[" w type_ref w "|->" w type_ref w "]"<br />

-> "unity"<br />

-> type_ref sr type_ref<br />

-> type_ref w div w type_ref<br />

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

385

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

Saved successfully!

Ooh no, something went wrong!