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:
parent
be9aa1cc5e
commit
57ffa2a487
6 changed files with 614 additions and 1154 deletions
|
|
@ -73,7 +73,7 @@ mod lib {
|
|||
mod llvm;
|
||||
}
|
||||
}
|
||||
else {
|
||||
case (_) {
|
||||
let (llvm_lib = "librustllvm.so") {
|
||||
mod llvm;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue