func (e *encoded) strStack() string {
	msg := []string{"["}
	for _, s := range e.stack {
		msg = append(msg, fmt.Sprintf("%T", s)[5:])
	}
	if len(e.stack) > 0 {
		loc := e.stack[len(e.stack)-1].Pos()
		add := e.pgf.Tok.PositionFor(loc, false)
		msg = append(msg, fmt.Sprintf("(line:%d,col:%d)", add.Line, add.Column))
	}
	msg = append(msg, "]")
	return strings.Join(msg, " ")
}
// convert the stack to a string, for debugging
convert the stack to a string, for debugging
// convert the stack to a string for debugging
func (e *encoded) strStack() string {
	msg := []string{"["}
	for _, s := range e.stack {
		msg = append(msg, fmt.Sprintf("%T", s)[5:])
	}
	if len(e.stack) > 0 {
		loc := e.stack[len(e.stack)-1].Pos()
		add := e.pgf.Tok.PositionFor(loc, false)
		msg = append(msg, fmt.Sprintf("(line:%d,col:%d)", add.Line, add.Column))
	}
	msg = append(msg, "]")
	return strings.Join(msg, " ")
}
func ( e * encoded ) strStack ( ) string { msg := [ ] string { " " } for _ , s := range e . stack { msg = append ( msg , fmt . Sprintf ( " " , s ) [ 5 : ] ) } if len ( e . stack ) > 0 { loc := e . stack [ len ( e . stack ) - 1 ] . Pos ( ) add := e . pgf . Tok . PositionFor ( loc , false ) msg = append ( msg , fmt . Sprintf ( " " , add . Line , add . Column ) ) } msg = append ( msg , " " ) return strings . Join ( msg , " " ) }
convert the stack to a string, for debugging
convert the stack to a string for debugging