File: utils.py

package info (click to toggle)
sedparse 0.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 1,810; sed: 59; sh: 48; makefile: 6
file content (10 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# Utilities for testing

from context import sedparse


def parse_string(script):  # pylint: disable=unused-variable
    parsed = []
    sedparse.compile_string(parsed, script)
    sedparse.check_final_program()
    return parsed