# Path: delphin/vpm.py
# _LR_OPS = set(['<>', '>>', '==', '=>'])
# _RL_OPS = set(['<>', '<<', '==', '<='])
# _SUBSUME_OPS = set(['<>', '<<', '>>'])
# _EQUAL_OPS = set(['==', '<=', '=>'])
# _ALL_OPS = _LR_OPS.union(_RL_OPS)
# class VPMSyntaxError(PyDelphinSyntaxError):
# class VPM(object):
# def load(source, semi=None):
# def _load(fh, semi):
#     def __init__(self, typemap, propmap, semi=None):
#     def apply(self, var, props, reverse=False):
# def _valmatch(vs, ss, op, varsort, semi, section):


from io import StringIO as S
from delphin import vpm
import pytest





def test_load(tmp_path):
    vpm.load(S('; test vpm\n'
               'a : b\n'
               ' 1 >> 2'))
    vpmfile = tmp_path / 'test.vpm'

# Path: delphin/vpm.py
# _LR_OPS = set(['<>', '>>', '==', '=>'])
# _RL_OPS = set(['<>', '<<', '==', '<='])
# _SUBSUME_OPS = set(['<>', '<<', '>>'])
# _EQUAL_OPS = set(['==', '<=', '=>'])
# _ALL_OPS = _LR_OPS.union(_RL_OPS)
# class VPMSyntaxError(PyDelphinSyntaxError):
# class VPM(object):
# def load(source, semi=None):
# def _load(fh, semi):
#     def __init__(self, typemap, propmap, semi=None):
#     def apply(self, var, props, reverse=False):
# def _valmatch(vs, ss, op, varsort, semi, section):


# Path: tests/vpm_test.py
from io import StringIO as S
from delphin import vpm
import pytest






def test_load(tmp_path):
    vpm.load(S('; test vpm\n'
               'a : b\n'
               ' 1 >> 2'))
    vpmfile = tmp_path / 'test.vpm'

    vpmfile.write_text('; test vpm\n'