Accept prefix notation for writing the types of str/~ and friends.

This commit is contained in:
Michael Sullivan
2012-07-11 23:42:26 -07:00
parent acb86921a6
commit 2ea9c8df0f
37 changed files with 198 additions and 147 deletions

View File

@@ -32,7 +32,7 @@ fn deserialize_span<D>(_d: D) -> span {
type spanned<T> = {node: T, span: span};
#[auto_serialize]
type ident = @str;
type ident = @str/~;
// Functions may or may not have names.
#[auto_serialize]
@@ -427,11 +427,11 @@ type lit = spanned<lit_>;
#[auto_serialize]
enum lit_ {
lit_str(@str),
lit_str(@str/~),
lit_int(i64, int_ty),
lit_uint(u64, uint_ty),
lit_int_unsuffixed(i64),
lit_float(@str, float_ty),
lit_float(@str/~, float_ty),
lit_nil,
lit_bool(bool),
}