aboutsummaryrefslogtreecommitdiff
path: root/src/boot/fe/token.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-20 23:56:43 -0700
committerGraydon Hoare <[email protected]>2010-09-20 23:56:43 -0700
commitc5f4789d5b75d3098665b17d318144cb7c54f42a (patch)
tree2d0ef3ef0e85aa7f2453d8bae762c89552a99ed9 /src/boot/fe/token.ml
parentWrap long lines. (diff)
downloadrust-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.ml2
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 -> "<-"