121 lines
2.7 KiB
Python
121 lines
2.7 KiB
Python
|
|
from vsg import parser
|
|
|
|
|
|
class relational_operator(parser.keyword):
|
|
'''
|
|
unique_id = relational_operator : relational_operator
|
|
'''
|
|
|
|
def __init__(self, sString):
|
|
parser.keyword.__init__(self, sString)
|
|
|
|
|
|
class equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : equal
|
|
'''
|
|
|
|
def __init__(self, sString='='):
|
|
relational_operator.__init__(self, '=')
|
|
|
|
|
|
class not_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : not_equal
|
|
'''
|
|
|
|
def __init__(self, sString='/='):
|
|
relational_operator.__init__(self, '/=')
|
|
|
|
|
|
class less_than(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : less_than
|
|
'''
|
|
|
|
def __init__(self, sString='<'):
|
|
relational_operator.__init__(self, '<')
|
|
|
|
|
|
class less_than_or_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : less_than_or_equal
|
|
'''
|
|
|
|
def __init__(self, sString='<='):
|
|
relational_operator.__init__(self, '<=')
|
|
|
|
|
|
class greater_than(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : greater_than
|
|
'''
|
|
|
|
def __init__(self, sString='>'):
|
|
relational_operator.__init__(self, '>')
|
|
|
|
|
|
class greater_than_or_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : greater_than_or_equal
|
|
'''
|
|
|
|
def __init__(self, sString='>='):
|
|
relational_operator.__init__(self, '>=')
|
|
|
|
|
|
class question_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_equal
|
|
'''
|
|
|
|
def __init__(self, sString='?='):
|
|
relational_operator.__init__(self, '?=')
|
|
|
|
|
|
class question_not_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_not_equal
|
|
'''
|
|
|
|
def __init__(self, sString='?/='):
|
|
relational_operator.__init__(self, '?/=')
|
|
|
|
|
|
class question_less_than(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_less_than
|
|
'''
|
|
|
|
def __init__(self, sString='?<'):
|
|
relational_operator.__init__(self, '?<')
|
|
|
|
|
|
class question_less_than_or_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_less_than_or_equal
|
|
'''
|
|
|
|
def __init__(self, sString='?<='):
|
|
relational_operator.__init__(self, '?<=')
|
|
|
|
|
|
class question_greater_than(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_greater_than
|
|
'''
|
|
|
|
def __init__(self, sString='?>'):
|
|
relational_operator.__init__(self, '?>')
|
|
|
|
|
|
class question_greater_than_or_equal(relational_operator):
|
|
'''
|
|
unique_id = relational_operator : question_greater_than_or_equal
|
|
'''
|
|
|
|
def __init__(self, sString='?>='):
|
|
relational_operator.__init__(self, '?>=')
|
|
|