SOFormulaParser.java (1a37d047) SOFormulaParser.java (30acf5e8)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 206 unchanged lines hidden (view full) ---

215
216 }
217
218 parser.parse(formula);
219 }
220 catch (ParseException ex)
221 {
222 boolean found = false;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 206 unchanged lines hidden (view full) ---

215
216 }
217
218 parser.parse(formula);
219 }
220 catch (ParseException ex)
221 {
222 boolean found = false;
223 // error occured so all token must be bad
223 // error occurred so all token must be bad
224 for (int i = 0; i < tokens.size(); i++)
225 {
226 if (!found && ex.currentToken != null && images.get(i).equals(ex.currentToken.image))
227 {
228 found = true;
229 }
230 if (found)
231 {

--- 211 unchanged lines hidden ---
224 for (int i = 0; i < tokens.size(); i++)
225 {
226 if (!found && ex.currentToken != null && images.get(i).equals(ex.currentToken.image))
227 {
228 found = true;
229 }
230 if (found)
231 {

--- 211 unchanged lines hidden ---