// our state structures struct ParseState { int linecount; int charcount; int nodecount; };