Parse null as simple_expression

This commit is contained in:
greg 2015-08-07 03:53:35 -07:00
parent 5c79563e53
commit 1416c9d444

View File

@ -248,6 +248,9 @@ fn simple_expression(tokens: &mut Tokens) -> ParseResult {
let next = tokens.next(); let next = tokens.next();
match next { match next {
Some(&Keyword(Kw::Null)) =>
ParseResult::Ok(AST::Name("null".to_string())),
Some(&Identifier(ref value)) => Some(&Identifier(ref value)) =>
ParseResult::Ok(AST::Name(value.clone())), ParseResult::Ok(AST::Name(value.clone())),