Decided to do away with yacc altogether, as I feel it's overkill for parsing these kinds of tokens.