Make the parser more careful about keywords

Keywords are now only recognized in contexts where they are valid. The
lexer no longer recognizes them, all words are lexed as IDENT tokens,
that get interpreted by the parser.
This commit is contained in:
Marijn Haverbeke 2011-05-13 21:30:08 +02:00
parent be9aa1cc5e
commit 57ffa2a487
6 changed files with 614 additions and 1154 deletions

View file

@ -51,7 +51,7 @@ alt (target_os) {
} case ("macos") {
mod os = "macos_os.rs";
mod os_fs = "posix_fs.rs";
} else {
} case (_) {
mod os = "linux_os.rs";
mod os_fs = "posix_fs.rs";
}