func TestParse(t *testing.T) { rf := file.New() text := rf.Read("../includes/test") variables := BuildVariables(text) for k, v := range *variables { fmt.Printf("%v = /%v/\n", k, v) } }
func TestLex(t *testing.T) { rf := file.New() text := rf.Read("../includes/test") // fmt.Print(text) l := lex(text) for { item, more := <-l.items if !more { break } fmt.Printf("item: %v\n", item) } }
func main() { rf := file.New() text := rf.Read("test") fmt.Print(text) }