// Compiles yml as a Expr recursively.
// Errors in the structure of yml is reported as an error.
// Errors in values causes a panic during execution of Expr instead.
Compiles yml as a Expr recursively.
Errors in the structure of yml is reported as an error.
Errors in values causes a panic during execution of Expr instead.
// Compiles yml as a Expr recursively . // Errors in the structure of yml is reported as an error . // Errors in values causes a panic during execution of Expr instead .
func Compile(yml interface{}) (Expr, error) {
	fn, err := compile(yml)
	if err != "" {
		return nil, errors.New(err)
	}
	return fn, nil
}
func Compile ( yml interface { } ) ( Expr , error ) { fn , err := compile ( yml ) if err != " " { return nil , errors . New ( err ) } return fn , nil }
Compiles yml as a Expr recursively.
Compiles yml as a Expr recursively .