Support a stack of StringScanner in parser