Stage 7: add chained token support to input parser.