Sequence output and scopes in parser