cue/parser: add Config type
This makes the parser configuration public, which
makes it possible for `ParseFile` middleware such as
`cue/load.Config.ParseFile` to see what options have
been passed and modify them as desired.
Since `Config` implements `Option`, it will be straightforward
to call `parser.ParseFile` with a `Config` value.
This API change should be fully backwardly compatible.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I50fe0de41f9d2f1ff1107ea3bbae510860aae9f8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1217123
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>