Parse parses the input expression value `txt` to a Ast and/or a set of Issues. This form of Parse creates a Source value for the input `txt` and forwards to the ParseSource method.
(txt string)
| 697 | // This form of Parse creates a Source value for the input `txt` and forwards to the |
| 698 | // ParseSource method. |
| 699 | func (e *Env) Parse(txt string) (*Ast, *Issues) { |
| 700 | src, err := common.NewTextSourceWithLimit(txt, e.configuredExpressionSizeLimit()) |
| 701 | if err != nil { |
| 702 | return nil, ErrorAsIssues(err) |
| 703 | } |
| 704 | return e.ParseSource(src) |
| 705 | } |
| 706 | |
| 707 | // ParseSource parses the input source to an Ast and/or set of Issues. |
| 708 | // |