Accept prefix notation for writing the types of str/~ and friends.

This commit is contained in:
Michael Sullivan
2012-07-11 23:42:26 -07:00
parent acb86921a6
commit 2ea9c8df0f
37 changed files with 198 additions and 147 deletions

View File

@@ -59,7 +59,7 @@ type break_t = {offset: int, blank_space: int};
type begin_t = {offset: int, breaks: breaks};
enum token { STRING(@str, int), BREAK(break_t), BEGIN(begin_t), END, EOF, }
enum token { STRING(@str/~, int), BREAK(break_t), BEGIN(begin_t), END, EOF, }
fn tok_str(++t: token) -> str {
alt t {