Parse parses the string and returns a Tree.
(buf string)
| 34 | |
| 35 | // Parse parses the string and returns a Tree. |
| 36 | func Parse(buf string) (*Tree, error) { |
| 37 | t := new(Tree) |
| 38 | t.scanner = new(scanner) |
| 39 | return t.Parse(buf) |
| 40 | } |
| 41 | |
| 42 | // Parse parses the string buffer to construct an ast |
| 43 | // representation for expansion. |