From 0e9f782a05ab9bc892af40abef84346a16d3baec Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 26 May 2009 23:45:44 -0500 Subject: Added % suffix operator, as in "$1.00 * 10%" --- src/token.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/token.cc') diff --git a/src/token.cc b/src/token.cc index fde6a0e3..d173c7ec 100644 --- a/src/token.cc +++ b/src/token.cc @@ -278,6 +278,11 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags) kind = STAR; break; + case '%': + in.get(c); + kind = PERCENT; + break; + case '?': in.get(c); kind = QUERY; -- cgit v1.2.3