]> Cypherpunks repositories - gostls13.git/commit
exp/template: split the parse tree into a separate package exp/template/parse
authorRob Pike <r@golang.org>
Tue, 9 Aug 2011 05:42:53 +0000 (15:42 +1000)
committerRob Pike <r@golang.org>
Tue, 9 Aug 2011 05:42:53 +0000 (15:42 +1000)
commitc66917d2b6578b1ceedf6629d43096ebaf71d75a
tree5a4bf19599474fb84a62ed8286e15443f7de4925
parent476150f4bf7d5e26232062781ff04272fd4c35b9
exp/template: split the parse tree into a separate package exp/template/parse

Mostly a mechanical change, with a few cleanups to make the split easier.
The external interface to exp/template is unaffected.

In another round I will play with the function map setup to see if I can
avoid exposing reflect across the boundary, but that will require some
structural changes I did not want to mix into this CL.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4849049
15 files changed:
src/pkg/Makefile
src/pkg/exp/template/Makefile
src/pkg/exp/template/exec.go
src/pkg/exp/template/exec_test.go
src/pkg/exp/template/funcs.go
src/pkg/exp/template/parse.go
src/pkg/exp/template/parse/Makefile [new file with mode: 0644]
src/pkg/exp/template/parse/lex.go [moved from src/pkg/exp/template/lex.go with 99% similarity]
src/pkg/exp/template/parse/lex_test.go [moved from src/pkg/exp/template/lex_test.go with 99% similarity]
src/pkg/exp/template/parse/node.go [new file with mode: 0644]
src/pkg/exp/template/parse/parse.go [new file with mode: 0644]
src/pkg/exp/template/parse/parse_test.go [moved from src/pkg/exp/template/parse_test.go with 89% similarity]
src/pkg/exp/template/parse/set.go [new file with mode: 0644]
src/pkg/exp/template/set.go
src/pkg/exp/template/set_test.go