Skip to content

Parser

Parser parses policy files into the canonical Policy representation.

new Parser(options?): Parser

constructor configures policy parsing. Prefer parser for public use.

ParserOptions = {}

Parser

parse(source): ParseResult

parse generates a policy while tracking CEL expressions relative to the complete YAML file.

Source

ParseResult