rust/src/comp/middle/tstate
Tim Chevalier c3bc8fada8 Allow omission of the '.' after nullary tag patterns
This commit allows patterns like:

alt x { some(_) { ... } none { } }

without the '.' after none. The parser suspends judgment about
whether a bare ident is a tag or a new bound variable; instead,
the resolver disambiguates.

This means that any code after resolution that pattern-matches on
patterns needs to call pat_util::normalize_pat, which consults
an environment to do this disambiguation.

In addition, local variables are no longer allowed to shadow
tag names, so this required changing some code (e.g. renaming
variables named "mut", and renaming ast::sub to subtract).

The parser currently accepts patterns with and without the '.'.
Once the compiler and libraries are changed, it will no longer
accept the '.'.
2012-01-17 10:08:16 -08:00
..
ann.rs remove compile-command from local variable blocks 2011-11-17 11:46:13 -08:00
annotate.rs Allow omission of the '.' after nullary tag patterns 2012-01-17 10:08:16 -08:00
auxiliary.rs Allow omission of the '.' after nullary tag patterns 2012-01-17 10:08:16 -08:00
bitvectors.rs deprecate fn exprs and the fn() type, preferring fn@ and native fn 2012-01-13 06:27:34 -08:00
ck.rs Make driver::session::session no longer an object 2012-01-12 18:04:02 +01:00
collect_locals.rs Allow omission of the '.' after nullary tag patterns 2012-01-17 10:08:16 -08:00
pre_post_conditions.rs Allow omission of the '.' after nullary tag patterns 2012-01-17 10:08:16 -08:00
states.rs Allow omission of the '.' after nullary tag patterns 2012-01-17 10:08:16 -08:00
tritv.rs remove compile-command from local variable blocks 2011-11-17 11:46:13 -08:00