Added ToString methods for syntax tree nodes

This commit is contained in:
Sasha Koshka 2022-08-15 14:04:57 -04:00
parent b02ff6cda6
commit d91423863b
6 changed files with 293 additions and 15 deletions

View File

@ -2,5 +2,5 @@ package parser
// parseData parses a data section // parseData parses a data section
func (parser *ParsingOperation) parseData () (err error) { func (parser *ParsingOperation) parseData () (err error) {
return
} }

View File

@ -2,6 +2,7 @@ package parser
import "reflect" import "reflect"
import "testing" import "testing"
import "git.tebibyte.media/sashakoshka/arf/types"
func checkTree (modulePath string, correct *SyntaxTree, test *testing.T) { func checkTree (modulePath string, correct *SyntaxTree, test *testing.T) {
tree, err := Parse(modulePath) tree, err := Parse(modulePath)