aboutsummaryrefslogtreecommitdiff
path: root/src/boot/fe/lexer.mll
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/lexer.mll
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/lexer.mll')
-rw-r--r--src/boot/fe/lexer.mll1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/fe/lexer.mll b/src/boot/fe/lexer.mll
index 58b27ec1..763b50c9 100644
--- a/src/boot/fe/lexer.mll
+++ b/src/boot/fe/lexer.mll
@@ -244,6 +244,7 @@ rule token = parse
| ',' { COMMA }
| ';' { SEMI }
| ':' { COLON }
+| '?' { QUES }
| "<-" { LARROW }
| "<|" { SEND }
| "->" { RARROW }