Formalize unary prefix '&' to mean "make ref"

This makes reserved operator parsing more robust and easier to understand.

Swift SVN r3884
This commit is contained in:
Dave Zarzycki
2013-01-27 21:20:06 +00:00
parent 93a81f1cd8
commit 5fe85d7020
7 changed files with 68 additions and 62 deletions

View File

@@ -90,6 +90,7 @@ PUNCTUATOR(semi, ";")
PUNCTUATOR(equal, "=")
PUNCTUATOR(ellipsis, "...")
PUNCTUATOR(make_ref, "&")
PUNCTUATOR(arrow, "->")
#undef KEYWORD