93949596979899100101102103
char c; while ((c = next("?*+{")) != 0) { switch (c) { case '?': e = new OptionalNode(e); break; case '*': e = new RepeatNode(e); break; case '+':