pychatl/parser.py
def parse(input_string, prefix=''):
  """Parses the given DSL string and returns parsed results.

  Args:
    input_string (str): DSL string
    prefix (str): Optional prefix to add to every element name, useful to namespace things

  Returns:
    dict: Parsed content

  """

  tree = parser.parse(input_string)
  visitor = ChatlVisitor(prefix)

  visit_parse_tree(tree, visitor)

  return visitor.parsed
def parse(input_string, prefix=''):
  tree = parser.parse(input_string)
  visitor = ChatlVisitor(prefix)

  visit_parse_tree(tree, visitor)

  return visitor.parsed
def parse ( input_string , prefix = '' ) : tree = parser . parse ( input_string ) visitor = ChatlVisitor ( prefix ) visit_parse_tree ( tree , visitor ) return visitor . parsed
Parses the given DSL string and returns parsed results.

  Args:
    input_string (str): DSL string
    prefix (str): Optional prefix to add to every element name, useful to namespace things

  Returns:
    dict: Parsed content
Parses the given DSL string and returns parsed results .