2
2
* Copyright (C) 2008 EnterpriseDB Corporation.
3
3
* Copyright (C) 2011 Stado Global Development Group.
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 as published by
7
* the Free Software Foundation.
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, see http://www.gnu.org/licenses or write to the
16
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
5
* This file is part of Stado.
7
* Stado is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
12
* Stado is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with Stado. If not, see <http://www.gnu.org/licenses/>.
19
20
* You can find Stado at http://www.stado.us
292
293
token = aLexer.peekToken(0);
293
294
if (token.charAt(0) == '+' || token.charAt(0) == '-' ||
294
295
token.charAt(0) == '*' || token.charAt(0) == '/' ||
296
token.charAt(0) == '<' || token.charAt(0) == '>' ||
297
token.charAt(0) == '=' || token.charAt(0) == '~' ||
298
token.charAt(0) == '@' ||
295
299
token.charAt(0) == '%' || "DIV".equalsIgnoreCase(token) ||
296
300
"MOD".equalsIgnoreCase(token)) {
297
301
theExpr.setOperator(aLexer.nextToken());