diff options
| author | Graydon Hoare <[email protected]> | 2010-09-20 23:56:43 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-20 23:56:43 -0700 |
| commit | c5f4789d5b75d3098665b17d318144cb7c54f42a (patch) | |
| tree | 2d0ef3ef0e85aa7f2453d8bae762c89552a99ed9 /src/boot/fe/token.ml | |
| parent | Wrap long lines. (diff) | |
| download | rust-c5f4789d5b75d3098665b17d318144cb7c54f42a.tar.xz rust-c5f4789d5b75d3098665b17d318144cb7c54f42a.zip | |
Bind pattern slots with ?, drop parens from 0-ary tag constructors, translate 0-ary constructors as constants. Rustc loses ~300kb.
Diffstat (limited to 'src/boot/fe/token.ml')
| -rw-r--r-- | src/boot/fe/token.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/boot/fe/token.ml b/src/boot/fe/token.ml index e6f8cd4b..85dd2a13 100644 --- a/src/boot/fe/token.ml +++ b/src/boot/fe/token.ml @@ -33,6 +33,7 @@ type token = | COMMA | SEMI | COLON + | QUES | RARROW | SEND | LARROW @@ -187,6 +188,7 @@ let rec string_of_tok t = | COMMA -> "," | SEMI -> ";" | COLON -> ":" + | QUES -> "?" | RARROW -> "->" | SEND -> "<|" | LARROW -> "<-" |