From 1416c9d444006742fe8afc457bcdc899dd36f53d Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 7 Aug 2015 03:53:35 -0700 Subject: [PATCH] Parse null as simple_expression --- src/parser.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 6fefb57..cb807ba 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -248,6 +248,9 @@ fn simple_expression(tokens: &mut Tokens) -> ParseResult { let next = tokens.next(); match next { + Some(&Keyword(Kw::Null)) => + ParseResult::Ok(AST::Name("null".to_string())), + Some(&Identifier(ref value)) => ParseResult::Ok(AST::Name(value.clone())),