diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-05-21 10:45:56 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-06-15 12:41:41 -0700 |
| commit | 473b1ec0a09db8aee9fde61a55cbe5074422c91f (patch) | |
| tree | 168884b1cb6e5718aac4110ecc42f090ce28407c /src/libsyntax/parse/token.rs | |
| parent | b6ed1de29e3092a061ed5f64ba560f6814b6d25a (diff) | |
| download | rust-473b1ec0a09db8aee9fde61a55cbe5074422c91f.tar.gz rust-473b1ec0a09db8aee9fde61a55cbe5074422c91f.zip | |
Make token trees parseable.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 4f4c2ee0064..981d7f9742e 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,9 +1,21 @@ import util::interner; import util::interner::interner; import std::map::{hashmap, str_hash}; +import std::serialization::{serializer, + deserializer, + serialize_uint, + deserialize_uint, + serialize_i64, + deserialize_i64, + serialize_u64, + deserialize_u64, + serialize_bool, + deserialize_bool}; +#[auto_serialize] type str_num = uint; +#[auto_serialize] enum binop { PLUS, MINUS, @@ -17,6 +29,7 @@ enum binop { SHR, } +#[auto_serialize] enum token { /* Expression-operator symbols. */ EQ, |
