public int getColumn(String lookahead) {
		int column = terminals.length;
		if (!lookahead.equals("$"))
			column = Arrays.binarySearch(terminals, lookahead);
		if (column < 0)
			throw new IllegalArgumentException(lookahead
					+ " is not a terminal!");
		return column + 1;
	}