Serial Input - Parsing multiple formats

You are Defining a Language that you want to parse. Write the definition, then write the parser.