1 // $G $F.go && $L $F.$A && ./$A.out
3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
13 prog := "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.";
30 for nest := 1; nest > 0; pc++ {
31 if prog[pc+1] == ']' {
34 if prog[pc+1] == '[' {
41 for nest := -1; nest < 0; pc-- {
42 if prog[pc-1] == ']' {
45 if prog[pc-1] == '[' {