{"modulePath":"github.com/expr-lang/expr","version":"v1.18.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Constants\n\n```go\nconst MaxNesting = 10_000\n```\nMaxNesting is the maximum allowed nesting depth of expressions (parentheses, arrays, maps, function arguments, unary operators, etc.). It bounds parser recursion, which is not covered by MaxNodes: for example, nested parentheses do not create AST nodes.\n\n## Types\n\n```go\ntype Parser struct {\n\t// contains filtered or unexported fields\n}\n```\nParser is a reusable parser. The zero value is ready for use.\n\n```go\nfunc (p *Parser) Parse(input string, config *conf.Config) (*Tree, error)\n```\n\n```go\ntype Tree struct {\n\tNode   Node\n\tSource file.Source\n}\n```\n\n```go\nfunc Parse(input string) (*Tree, error)\n```\n\n```go\nfunc ParseWithConfig(input string, config *conf.Config) (*Tree, error)\n```\n\n","path":"github.com/expr-lang/expr/parser","name":"parser","synopsis":"","isRedistributable":true}
