diff --git a/parser/tree-tostring.go b/parser/tree-tostring.go index 535f81b..90e422c 100644 --- a/parser/tree-tostring.go +++ b/parser/tree-tostring.go @@ -122,7 +122,7 @@ func (member TypeMember) ToString (indent int, breakLine bool) (output string) { output += member.permission.ToString() + " " output += member.name + ":" - output += member.what.ToString(indent, breakLine) + output += member.what.ToString(indent + 1, breakLine) if member.bitWidth > 0 { output += fmt.Sprint(" & ", member.bitWidth) @@ -427,7 +427,7 @@ func (phrase Phrase) ToString (indent int, ownLine bool) (output string) { output += "\n" output += phrase.block.ToString(indent + 1) } else if len(phrase.block) > 0 { - output += "NON BLOCKLEVEL PHRASE HAS BLOCK" + output += "NON-BLOCK-LEVEL-PHRASE-HAS-BLOCK" } return } diff --git a/parser/type_test.go b/parser/type_test.go index 8988ec5..9863344 100644 --- a/parser/type_test.go +++ b/parser/type_test.go @@ -26,13 +26,18 @@ type ro dInitInherit:aBasic: .that:<9384> .this:<389> ) -type ro cInitAndDefine:aBasic: +type ro eInitAndDefine:aBasic: ( .ro these:aBasic: ( .ro born:Int:<4> .ro in:Int - .ro the:Int:3:<9348 92384 92834> + .ro the:Int:3: + < + 9348 + 92384 + 92834 + > ): ( .this:<98>