helpers and general structs used by asciigoat parsers and generators