// tokstr returns a literal if provided, otherwise returns the token string. func tokstr(tok lexer.Token, lit string) string { if lit != "" && tok != lexer.WS { return lit } return tok.String() }
// tokstr returns a literal if provided, otherwise returns the token string. func tokstr(tok lexer.Token, lit string) string { if tok == lexer.IDENT { return "IDENTIFIER (" + lit + ")" } return tok.String() }