From e162455ebb545ea33580e58f52ebe424ef9e68fa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 5 Sep 2010 01:38:47 -0400 Subject: Minor simplifications to valexpr parser The most significant change is the way CONS sequences are parsed, and that now instead of =/:=, the operators are ==/=. --- src/token.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/token.h') diff --git a/src/token.h b/src/token.h index aae73837..28e29752 100644 --- a/src/token.h +++ b/src/token.h @@ -94,7 +94,7 @@ struct expr_t::token_t : public noncopyable } kind; - char symbol[3]; + char symbol[6]; value_t value; std::size_t length; @@ -113,13 +113,10 @@ struct expr_t::token_t : public noncopyable } void clear() { - kind = UNKNOWN; - length = 0; - value = NULL_VALUE; - + kind = UNKNOWN; + length = 0; + value = NULL_VALUE; symbol[0] = '\0'; - symbol[1] = '\0'; - symbol[2] = '\0'; } int parse_reserved_word(std::istream& in); -- cgit v1.2.3