2024-04-18 20:43:12 +00:00
|
|
|
package functions
|
2023-07-02 09:13:51 +00:00
|
|
|
|
|
|
|
// a golang port of https://github.com/ggerganov/llama.cpp/pull/1887
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"fmt"
|
|
|
|
"regexp"
|
|
|
|
"sort"
|
|
|
|
"strings"
|
2024-05-15 18:03:18 +00:00
|
|
|
|
2024-06-23 08:24:36 +00:00
|
|
|
"github.com/mudler/LocalAI/pkg/utils"
|
2023-07-02 09:13:51 +00:00
|
|
|
)
|
|
|
|
|
2023-11-11 12:14:59 +00:00
|
|
|
const (
|
|
|
|
JSONBNF = `root ::= object
|
|
|
|
value ::= object | array | string | number | ("true" | "false" | "null") ws
|
|
|
|
|
|
|
|
object ::=
|
|
|
|
"{" ws (
|
|
|
|
string ":" ws value
|
|
|
|
("," ws string ":" ws value)*
|
|
|
|
)? "}" ws
|
|
|
|
|
|
|
|
array ::=
|
|
|
|
"[" ws (
|
|
|
|
value
|
|
|
|
("," ws value)*
|
|
|
|
)? "]" ws
|
|
|
|
|
|
|
|
string ::=
|
|
|
|
"\"" (
|
|
|
|
[^"\\] |
|
|
|
|
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
|
|
|
|
)* "\"" ws
|
|
|
|
|
|
|
|
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? ws
|
|
|
|
|
|
|
|
ws ::= ([ \t\n] ws)?`
|
|
|
|
)
|
|
|
|
|
2023-07-02 09:13:51 +00:00
|
|
|
var (
|
|
|
|
SPACE_RULE = `" "?`
|
|
|
|
|
|
|
|
PRIMITIVE_RULES = map[string]string{
|
|
|
|
"boolean": `("true" | "false") space`,
|
2023-08-03 21:32:30 +00:00
|
|
|
"number": `("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? space`,
|
|
|
|
"integer": `("-"? ([0-9] | [1-9] [0-9]*)) space`,
|
|
|
|
"string": `"\"" (
|
|
|
|
[^"\\] |
|
|
|
|
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F])
|
|
|
|
)* "\"" space`,
|
2024-05-23 17:16:08 +00:00
|
|
|
// TODO: we shouldn't forbid \" and \\ or all unicode and have this branch here,
|
|
|
|
// however, if we don't have it, the grammar will be ambiguous and
|
|
|
|
// empirically results are way worse.
|
2024-05-15 18:03:18 +00:00
|
|
|
"freestring": `(
|
2024-05-31 07:36:27 +00:00
|
|
|
[^\x00] |
|
2024-05-15 18:03:18 +00:00
|
|
|
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F])
|
|
|
|
)* space`,
|
2023-08-03 21:32:30 +00:00
|
|
|
"null": `"null" space`,
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INVALID_RULE_CHARS_RE = regexp.MustCompile(`[^a-zA-Z0-9-]+`)
|
|
|
|
GRAMMAR_LITERAL_ESCAPE_RE = regexp.MustCompile(`[\r\n"]`)
|
|
|
|
GRAMMAR_LITERAL_ESCAPES = map[string]string{
|
|
|
|
"\r": `\r`,
|
|
|
|
"\n": `\n`,
|
|
|
|
`"`: `\"`,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
type JSONSchemaConverter struct {
|
|
|
|
propOrder map[string]int
|
|
|
|
rules map[string]string
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewJSONSchemaConverter(propOrder string) *JSONSchemaConverter {
|
|
|
|
propOrderSlice := strings.Split(propOrder, ",")
|
|
|
|
propOrderMap := make(map[string]int)
|
|
|
|
for idx, name := range propOrderSlice {
|
|
|
|
propOrderMap[name] = idx
|
|
|
|
}
|
|
|
|
|
|
|
|
rules := make(map[string]string)
|
|
|
|
rules["space"] = SPACE_RULE
|
|
|
|
|
|
|
|
return &JSONSchemaConverter{
|
|
|
|
propOrder: propOrderMap,
|
|
|
|
rules: rules,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sc *JSONSchemaConverter) formatLiteral(literal interface{}) string {
|
|
|
|
escaped := GRAMMAR_LITERAL_ESCAPE_RE.ReplaceAllStringFunc(jsonString(literal), func(match string) string {
|
|
|
|
return GRAMMAR_LITERAL_ESCAPES[match]
|
|
|
|
})
|
|
|
|
return fmt.Sprintf(`"%s"`, escaped)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (sc *JSONSchemaConverter) addRule(name, rule string) string {
|
|
|
|
escName := INVALID_RULE_CHARS_RE.ReplaceAllString(name, "-")
|
|
|
|
key := escName
|
|
|
|
if existingRule, ok := sc.rules[escName]; ok && existingRule != rule {
|
|
|
|
i := 0
|
|
|
|
for {
|
|
|
|
key = fmt.Sprintf("%s%d", escName, i)
|
|
|
|
if _, ok := sc.rules[key]; !ok {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
i++
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sc.rules[key] = rule
|
|
|
|
return key
|
|
|
|
}
|
|
|
|
|
2024-05-23 17:16:08 +00:00
|
|
|
const arrayNewLines = `arr ::=
|
2024-02-20 20:58:45 +00:00
|
|
|
"[\n" (
|
|
|
|
realvalue
|
|
|
|
(",\n" realvalue)*
|
|
|
|
)? "]"`
|
|
|
|
|
2024-05-23 17:16:08 +00:00
|
|
|
const array = `arr ::=
|
|
|
|
"[" (
|
|
|
|
realvalue
|
|
|
|
("," realvalue)*
|
|
|
|
)? "]"`
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
func (sc *JSONSchemaConverter) finalizeGrammar(options ...func(*GrammarOption)) string {
|
|
|
|
|
|
|
|
grammarOpts := &GrammarOption{}
|
|
|
|
grammarOpts.Apply(options...)
|
|
|
|
|
2024-05-31 07:36:27 +00:00
|
|
|
prefix := grammarOpts.Prefix
|
2024-05-21 22:14:16 +00:00
|
|
|
maybeArray := grammarOpts.MaybeArray
|
2024-05-23 17:16:08 +00:00
|
|
|
disableParallelNewLines := grammarOpts.DisableParallelNewLines
|
2024-05-21 22:14:16 +00:00
|
|
|
maybeString := grammarOpts.MaybeString
|
|
|
|
noMixedFreeString := grammarOpts.NoMixedFreeString
|
|
|
|
|
2023-07-02 09:13:51 +00:00
|
|
|
var lines []string
|
2024-05-15 18:03:18 +00:00
|
|
|
|
2024-05-31 07:36:27 +00:00
|
|
|
swapRoot := maybeArray || maybeString || prefix != ""
|
2024-05-15 18:03:18 +00:00
|
|
|
|
2024-02-20 20:58:45 +00:00
|
|
|
// write down the computed rules.
|
|
|
|
// if maybeArray is true, we need to add the array rule and slightly tweak the root rule
|
2023-07-02 09:13:51 +00:00
|
|
|
for name, rule := range sc.rules {
|
2024-05-15 18:03:18 +00:00
|
|
|
if swapRoot && name == "root" {
|
2024-02-20 20:58:45 +00:00
|
|
|
name = "realvalue"
|
|
|
|
}
|
2023-07-02 09:13:51 +00:00
|
|
|
lines = append(lines, fmt.Sprintf("%s ::= %s", name, rule))
|
|
|
|
}
|
2024-02-20 20:58:45 +00:00
|
|
|
|
2024-05-15 18:03:18 +00:00
|
|
|
if !swapRoot {
|
|
|
|
return strings.Join(lines, "\n")
|
|
|
|
}
|
|
|
|
|
|
|
|
newRoot := "realvalue"
|
2024-02-20 20:58:45 +00:00
|
|
|
if maybeArray {
|
2024-05-15 18:03:18 +00:00
|
|
|
newRoot = "arr | realvalue"
|
|
|
|
}
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
freestringRule := "mixedstring"
|
|
|
|
if noMixedFreeString {
|
|
|
|
freestringRule = "freestring"
|
|
|
|
}
|
|
|
|
|
2024-05-31 07:36:27 +00:00
|
|
|
if prefix != "" {
|
2024-05-15 18:03:18 +00:00
|
|
|
// quote newlines in suffix
|
2024-05-31 07:36:27 +00:00
|
|
|
prefix = utils.EscapeNewLines(prefix)
|
2024-05-15 18:03:18 +00:00
|
|
|
|
|
|
|
if maybeArray && maybeString {
|
|
|
|
newRoot = "(" + newRoot + ")"
|
|
|
|
}
|
|
|
|
|
|
|
|
if maybeString {
|
|
|
|
//newRoot = "( (\"" + suffix + "\" " + newRoot + ") | freestring ) "
|
2024-05-31 07:36:27 +00:00
|
|
|
newRoot = "( \"" + prefix + "\" " + newRoot + " | " + freestringRule + " ) "
|
2024-05-15 18:03:18 +00:00
|
|
|
} else {
|
2024-05-31 07:36:27 +00:00
|
|
|
newRoot = "\"" + prefix + "\" " + "" + newRoot + ""
|
2024-05-15 18:03:18 +00:00
|
|
|
}
|
|
|
|
} else if maybeString {
|
|
|
|
if maybeArray {
|
|
|
|
// newRoot = "(" + newRoot + ")"
|
|
|
|
}
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
newRoot = freestringRule + " | " + newRoot
|
2024-02-20 20:58:45 +00:00
|
|
|
}
|
|
|
|
|
2024-05-15 18:03:18 +00:00
|
|
|
lines = append(lines, fmt.Sprintf("%s ::= %s", "root", newRoot))
|
2024-05-23 17:16:08 +00:00
|
|
|
if disableParallelNewLines {
|
|
|
|
lines = append(lines, array)
|
|
|
|
} else {
|
|
|
|
lines = append(lines, arrayNewLines)
|
|
|
|
}
|
2024-05-15 18:03:18 +00:00
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
if maybeArray {
|
2024-05-31 07:36:27 +00:00
|
|
|
if grammarOpts.ExpectStringsAfterJSON {
|
|
|
|
lines = append(lines, `mixedstring ::= freestring | freestring arr freestring | (freestring realvalue freestring)* | realvalue | arr`)
|
|
|
|
} else {
|
|
|
|
lines = append(lines, `mixedstring ::= freestring | freestring arr | freestring realvalue | realvalue | arr`)
|
|
|
|
}
|
2024-05-21 22:14:16 +00:00
|
|
|
} else {
|
2024-05-31 07:36:27 +00:00
|
|
|
if grammarOpts.ExpectStringsAfterJSON {
|
|
|
|
lines = append(lines, `mixedstring ::= freestring | (freestring realvalue freestring)* | realvalue`)
|
|
|
|
} else {
|
|
|
|
lines = append(lines, `mixedstring ::= freestring | freestring realvalue | realvalue`)
|
|
|
|
}
|
2024-05-21 22:14:16 +00:00
|
|
|
}
|
|
|
|
|
2023-07-02 09:13:51 +00:00
|
|
|
return strings.Join(lines, "\n")
|
|
|
|
}
|
|
|
|
|
2023-07-19 20:56:13 +00:00
|
|
|
func (sc *JSONSchemaConverter) visit(schema map[string]interface{}, name string, rootSchema map[string]interface{}) string {
|
2023-07-02 09:13:51 +00:00
|
|
|
st, existType := schema["type"]
|
|
|
|
var schemaType string
|
|
|
|
if existType {
|
|
|
|
schemaType = st.(string)
|
|
|
|
}
|
|
|
|
ruleName := name
|
|
|
|
if name == "" {
|
|
|
|
ruleName = "root"
|
|
|
|
}
|
|
|
|
_, oneOfExists := schema["oneOf"]
|
|
|
|
_, anyOfExists := schema["anyOf"]
|
|
|
|
if oneOfExists || anyOfExists {
|
|
|
|
var alternatives []string
|
|
|
|
oneOfSchemas, oneOfExists := schema["oneOf"].([]interface{})
|
|
|
|
anyOfSchemas, anyOfExists := schema["anyOf"].([]interface{})
|
|
|
|
|
|
|
|
if oneOfExists {
|
|
|
|
for i, altSchema := range oneOfSchemas {
|
2023-07-19 20:56:13 +00:00
|
|
|
alternative := sc.visit(altSchema.(map[string]interface{}), fmt.Sprintf("%s-%d", ruleName, i), rootSchema)
|
2023-07-02 09:13:51 +00:00
|
|
|
alternatives = append(alternatives, alternative)
|
|
|
|
}
|
|
|
|
} else if anyOfExists {
|
|
|
|
for i, altSchema := range anyOfSchemas {
|
2023-07-19 20:56:13 +00:00
|
|
|
alternative := sc.visit(altSchema.(map[string]interface{}), fmt.Sprintf("%s-%d", ruleName, i), rootSchema)
|
2023-07-02 09:13:51 +00:00
|
|
|
alternatives = append(alternatives, alternative)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rule := strings.Join(alternatives, " | ")
|
|
|
|
return sc.addRule(ruleName, rule)
|
2023-07-19 20:56:13 +00:00
|
|
|
} else if ref, exists := schema["$ref"].(string); exists {
|
|
|
|
referencedSchema := sc.resolveReference(ref, rootSchema)
|
|
|
|
return sc.visit(referencedSchema, name, rootSchema)
|
2023-07-02 09:13:51 +00:00
|
|
|
} else if constVal, exists := schema["const"]; exists {
|
|
|
|
return sc.addRule(ruleName, sc.formatLiteral(constVal))
|
|
|
|
} else if enumVals, exists := schema["enum"].([]interface{}); exists {
|
|
|
|
var enumRules []string
|
|
|
|
for _, enumVal := range enumVals {
|
|
|
|
enumRule := sc.formatLiteral(enumVal)
|
|
|
|
enumRules = append(enumRules, enumRule)
|
|
|
|
}
|
|
|
|
rule := strings.Join(enumRules, " | ")
|
|
|
|
return sc.addRule(ruleName, rule)
|
|
|
|
} else if properties, exists := schema["properties"].(map[string]interface{}); schemaType == "object" && exists {
|
|
|
|
propOrder := sc.propOrder
|
|
|
|
var propPairs []struct {
|
|
|
|
propName string
|
|
|
|
propSchema map[string]interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
for propName, propSchema := range properties {
|
|
|
|
propPairs = append(propPairs, struct {
|
|
|
|
propName string
|
|
|
|
propSchema map[string]interface{}
|
|
|
|
}{propName: propName, propSchema: propSchema.(map[string]interface{})})
|
|
|
|
}
|
|
|
|
|
|
|
|
sort.Slice(propPairs, func(i, j int) bool {
|
|
|
|
iOrder := propOrder[propPairs[i].propName]
|
|
|
|
jOrder := propOrder[propPairs[j].propName]
|
|
|
|
if iOrder != 0 && jOrder != 0 {
|
|
|
|
return iOrder < jOrder
|
|
|
|
}
|
|
|
|
return propPairs[i].propName < propPairs[j].propName
|
|
|
|
})
|
|
|
|
|
|
|
|
var rule strings.Builder
|
|
|
|
rule.WriteString(`"{" space`)
|
|
|
|
|
|
|
|
for i, propPair := range propPairs {
|
|
|
|
propName := propPair.propName
|
|
|
|
propSchema := propPair.propSchema
|
2023-07-19 20:56:13 +00:00
|
|
|
propRuleName := sc.visit(propSchema, fmt.Sprintf("%s-%s", ruleName, propName), rootSchema)
|
2023-07-02 09:13:51 +00:00
|
|
|
|
|
|
|
if i > 0 {
|
|
|
|
rule.WriteString(` "," space`)
|
|
|
|
}
|
|
|
|
|
|
|
|
rule.WriteString(fmt.Sprintf(` %s space ":" space %s`, sc.formatLiteral(propName), propRuleName))
|
|
|
|
}
|
|
|
|
|
|
|
|
rule.WriteString(` "}" space`)
|
|
|
|
return sc.addRule(ruleName, rule.String())
|
|
|
|
} else if items, exists := schema["items"].(map[string]interface{}); schemaType == "array" && exists {
|
2023-07-19 20:56:13 +00:00
|
|
|
itemRuleName := sc.visit(items, fmt.Sprintf("%s-item", ruleName), rootSchema)
|
2023-07-02 09:13:51 +00:00
|
|
|
rule := fmt.Sprintf(`"[" space (%s ("," space %s)*)? "]" space`, itemRuleName, itemRuleName)
|
|
|
|
return sc.addRule(ruleName, rule)
|
|
|
|
} else {
|
|
|
|
primitiveRule, exists := PRIMITIVE_RULES[schemaType]
|
|
|
|
if !exists {
|
|
|
|
panic(fmt.Sprintf("Unrecognized schema: %v", schema))
|
|
|
|
}
|
2023-08-03 21:32:30 +00:00
|
|
|
if ruleName == "root" {
|
|
|
|
schemaType = "root"
|
|
|
|
}
|
2023-07-02 09:13:51 +00:00
|
|
|
return sc.addRule(schemaType, primitiveRule)
|
|
|
|
}
|
|
|
|
}
|
2023-07-19 20:56:13 +00:00
|
|
|
func (sc *JSONSchemaConverter) resolveReference(ref string, rootSchema map[string]interface{}) map[string]interface{} {
|
|
|
|
if !strings.HasPrefix(ref, "#/$defs/") {
|
|
|
|
panic(fmt.Sprintf("Invalid reference format: %s", ref))
|
|
|
|
}
|
|
|
|
|
|
|
|
defKey := strings.TrimPrefix(ref, "#/$defs/")
|
|
|
|
definitions, exists := rootSchema["$defs"].(map[string]interface{})
|
|
|
|
if !exists {
|
|
|
|
fmt.Println(rootSchema)
|
|
|
|
|
|
|
|
panic("No definitions found in the schema")
|
|
|
|
}
|
2023-07-02 09:13:51 +00:00
|
|
|
|
2023-07-19 20:56:13 +00:00
|
|
|
def, exists := definitions[defKey].(map[string]interface{})
|
|
|
|
if !exists {
|
|
|
|
fmt.Println(definitions)
|
|
|
|
|
|
|
|
panic(fmt.Sprintf("Definition not found: %s", defKey))
|
|
|
|
}
|
|
|
|
|
|
|
|
return def
|
|
|
|
}
|
2024-05-21 22:14:16 +00:00
|
|
|
func (sc *JSONSchemaConverter) Grammar(schema map[string]interface{}, options ...func(*GrammarOption)) string {
|
2024-05-15 18:03:18 +00:00
|
|
|
sc.addRule("freestring", PRIMITIVE_RULES["freestring"])
|
2023-07-19 20:56:13 +00:00
|
|
|
sc.visit(schema, "", schema)
|
2024-05-21 22:14:16 +00:00
|
|
|
return sc.finalizeGrammar(options...)
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
func (sc *JSONSchemaConverter) GrammarFromBytes(b []byte, options ...func(*GrammarOption)) string {
|
2023-07-02 09:13:51 +00:00
|
|
|
var schema map[string]interface{}
|
|
|
|
_ = json.Unmarshal(b, &schema)
|
2024-05-21 22:14:16 +00:00
|
|
|
return sc.Grammar(schema, options...)
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func jsonString(v interface{}) string {
|
|
|
|
b, _ := json.Marshal(v)
|
|
|
|
return string(b)
|
|
|
|
}
|
|
|
|
|
|
|
|
type FunctionName struct {
|
|
|
|
Const string `json:"const"`
|
|
|
|
}
|
|
|
|
|
2024-05-11 23:13:22 +00:00
|
|
|
type FunctionProperties struct {
|
2023-07-02 09:13:51 +00:00
|
|
|
Function FunctionName `json:"function"`
|
|
|
|
Arguments Argument `json:"arguments"`
|
|
|
|
}
|
|
|
|
|
2024-05-11 23:13:22 +00:00
|
|
|
type NameProperties struct {
|
|
|
|
Function FunctionName `json:"name"`
|
|
|
|
Arguments Argument `json:"arguments"`
|
|
|
|
}
|
|
|
|
|
2023-07-02 09:13:51 +00:00
|
|
|
type Argument struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Properties map[string]interface{} `json:"properties"`
|
|
|
|
}
|
|
|
|
|
2024-05-11 23:13:22 +00:00
|
|
|
type ItemName struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Properties NameProperties `json:"properties"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ItemFunction struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Properties FunctionProperties `json:"properties"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type JSONFunctionStructureName struct {
|
|
|
|
OneOf []ItemName `json:"oneOf,omitempty"`
|
|
|
|
AnyOf []ItemName `json:"anyOf,omitempty"`
|
|
|
|
Defs map[string]interface{} `json:"$defs,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
func (j JSONFunctionStructureName) Grammar(options ...func(*GrammarOption)) string {
|
|
|
|
grammarOpts := &GrammarOption{}
|
|
|
|
grammarOpts.Apply(options...)
|
|
|
|
|
2024-05-11 23:13:22 +00:00
|
|
|
dat, _ := json.Marshal(j)
|
2024-05-21 22:14:16 +00:00
|
|
|
return NewJSONSchemaConverter(grammarOpts.PropOrder).GrammarFromBytes(dat, options...)
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|
|
|
|
|
2024-05-11 23:13:22 +00:00
|
|
|
type JSONFunctionStructureFunction struct {
|
|
|
|
OneOf []ItemFunction `json:"oneOf,omitempty"`
|
|
|
|
AnyOf []ItemFunction `json:"anyOf,omitempty"`
|
2023-07-19 20:56:13 +00:00
|
|
|
Defs map[string]interface{} `json:"$defs,omitempty"`
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|
|
|
|
|
2024-05-21 22:14:16 +00:00
|
|
|
func (j JSONFunctionStructureFunction) Grammar(options ...func(*GrammarOption)) string {
|
|
|
|
grammarOpts := &GrammarOption{}
|
|
|
|
grammarOpts.Apply(options...)
|
|
|
|
|
2023-07-02 09:13:51 +00:00
|
|
|
dat, _ := json.Marshal(j)
|
2024-05-21 22:14:16 +00:00
|
|
|
return NewJSONSchemaConverter(grammarOpts.PropOrder).GrammarFromBytes(dat, options...)
|
2023-07-02 09:13:51 +00:00
|
|
|
}
|