src/main/webapp/js/singlepage-cqlparser.js
// no whitespace is skipped if the symbol was not encountered
no whitespace is skipped if the symbol was not encountered
no whitespace is skipped if the symbol was not encountered
function accept(sym, keepWhitespace) {
			var originalPos = pos;
			var originalCur = cur;
			if (!keepWhitespace) {
				while (test(WHITESPACE))
					nextSym();
			}
			var accepted = test(sym);
			if (accepted) {
				pos += sym.length;
				cur = input[pos];
				if (!keepWhitespace) {
					while (test(WHITESPACE))
						nextSym();
				}
			} else {
				cur = originalCur;
				pos = originalPos;
			}
			return accepted;
		}
function accept ( sym , keepWhitespace ) { var originalPos = pos ; var originalCur = cur ; if ( ! keepWhitespace ) { while ( test ( WHITESPACE ) ) nextSym ( ) ; } var accepted = test ( sym ) ; if ( accepted ) { pos += sym . length ; cur = input [ pos ] ; if ( ! keepWhitespace ) { while ( test ( WHITESPACE ) ) nextSym ( ) ; } } else { cur = originalCur ; pos = originalPos ; } return accepted ; }
no whitespace is skipped if the symbol was not encountered
no whitespace is skipped if the symbol was not encountered
// Don't use nextSym(), sym.length might be >1