pub fn parse(input: &str) -> Input
Parse the input into 12 rules for each possible combination of state and value at the cursor.