diff options
| author | Marijn Haverbeke <[email protected]> | 2011-03-25 16:28:16 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-03-27 14:11:23 +0200 |
| commit | 6ecdc04788334420db05d9894e18d1d7a605ab4f (patch) | |
| tree | aba6169530f041b59507490b9ab28b1ac2835d18 /src/comp/front/token.rs | |
| parent | shootout: Hoist out the vector indexing on nbody; don't rely on LICM, which i... (diff) | |
| download | rust-6ecdc04788334420db05d9894e18d1d7a605ab4f.tar.xz rust-6ecdc04788334420db05d9894e18d1d7a605ab4f.zip | |
Add support for break and cont to rustc
Testing proper cleanup is hampered by
https://github.com/graydon/rust/issues/293
Diffstat (limited to 'src/comp/front/token.rs')
| -rw-r--r-- | src/comp/front/token.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/front/token.rs b/src/comp/front/token.rs index 9d5f0dfd..bb0cea80 100644 --- a/src/comp/front/token.rs +++ b/src/comp/front/token.rs @@ -74,6 +74,9 @@ tag token { ALT; CASE; + BREAK; + CONT; + FAIL; DROP; @@ -242,6 +245,9 @@ fn to_str(token t) -> str { case (ALT) { ret "alt"; } case (CASE) { ret "case"; } + case (BREAK) { ret "break"; } + case (CONT) { ret "cont"; } + case (FAIL) { ret "fail"; } case (DROP) { ret "drop"; } |