<reponame>smmckay/quex-mirror<filename>quex/engine/misc/error_check.py
import quex.engine.misc.error as error

def tail(OnlyCommonF, CommonF, Name0, Sr0, Name1, Sr1):
    """Exits with error if: 

       Two state machines have some common tail, but not completely.
    """
    if not CommonF: return 
    if OnlyCommonF: return

    error.log("%s definition matches partly the\n" % Name0, 
              Sr0, DontExitF=True)
    error.log("tail of a %s, but not completely.\n" % Name1
              + "(either match completely or not at all)", Sr1)


import quex.engine.misc.error as error

def tail(OnlyCommonF, CommonF, Name0, Sr0, Name1, Sr1):
    """Exits with error if: 

       Two state machines have some common tail, but not completely.
    """
    if not CommonF: return 
    if OnlyCommonF: return

    error.log("%s definition matches partly the\n" % Name0, 
              Sr0, DontExitF=True)
    error.log("tail of a %s, but not completely.\n" % Name1
              + "(either match completely or not at all)", Sr1)
Exits with error if:          Two state machines have some common tail, but not completely.