private void Match(char expectedChar) { if (currentChar == expectedChar) Next(); else throw Error("Expect '" + expectedChar + "', found '" + (char)currentChar + "'"); }