nemoguardrails.colang.v2_x.lang.parser
nemoguardrails.colang.v2_x.lang.parser
Module Contents
Classes
Functions
Data
API
Colang 2.x parser class
_lark_parser
grammar_path
staticmethod
Applies a set of expansions even before starting the parsing.
Currently, only the ”…” is expanded.
Helper to get only the parsing tree.
Parameters:
content
The Colang content.
Returns: dict
An instance of a parsing tree as returned by Lark.
Parse the provided content and create element structure.
Parse the content of a .co.