This commit is contained in:
gobwas 2016-02-22 22:46:45 +03:00
parent 205c640a14
commit be21acf93c
3 changed files with 8 additions and 3 deletions

View File

@ -36,5 +36,5 @@ func (self Any) Len() int {
} }
func (self Any) String() string { func (self Any) String() string {
return fmt.Sprintf("<any:![%s]>", self.Separators) return fmt.Sprintf("<any:![%s]>", string(self.Separators))
} }

View File

@ -41,5 +41,10 @@ func (self List) String() string {
not = "!" not = "!"
} }
return fmt.Sprintf("<list:%s[%s]>", not, self.List) // var list []string
// for _, r := range self.List {
// list = append(list, string(r))
// }
return fmt.Sprintf("<list:%s[%s]>", not, string(self.List))
} }

View File

@ -43,5 +43,5 @@ func (self Range) String() string {
if self.Not { if self.Not {
not = "!" not = "!"
} }
return fmt.Sprintf("<range:%s[%s,%s]>", not, string(self.Lo), string(self.Hi)) return fmt.Sprintf("<range:%s[%s-%s]>", not, string(self.Lo), string(self.Hi))
} }