vhdl-style-guide/vsg/token/relational_operator.py

121 lines
2.5 KiB
Python

# -*- coding: utf-8 -*-
from vsg import parser
class relational_operator(parser.keyword):
"""
unique_id = relational_operator : relational_operator
"""
def __init__(self, sString):
super().__init__(sString)
class equal(relational_operator):
"""
unique_id = relational_operator : equal
"""
def __init__(self, sString="="):
super().__init__("=")
class not_equal(relational_operator):
"""
unique_id = relational_operator : not_equal
"""
def __init__(self, sString="/="):
super().__init__("/=")
class less_than(relational_operator):
"""
unique_id = relational_operator : less_than
"""
def __init__(self, sString="<"):
super().__init__("<")
class less_than_or_equal(relational_operator):
"""
unique_id = relational_operator : less_than_or_equal
"""
def __init__(self, sString="<="):
super().__init__("<=")
class greater_than(relational_operator):
"""
unique_id = relational_operator : greater_than
"""
def __init__(self, sString=">"):
super().__init__(">")
class greater_than_or_equal(relational_operator):
"""
unique_id = relational_operator : greater_than_or_equal
"""
def __init__(self, sString=">="):
super().__init__(">=")
class question_equal(relational_operator):
"""
unique_id = relational_operator : question_equal
"""
def __init__(self, sString="?="):
super().__init__("?=")
class question_not_equal(relational_operator):
"""
unique_id = relational_operator : question_not_equal
"""
def __init__(self, sString="?/="):
super().__init__("?/=")
class question_less_than(relational_operator):
"""
unique_id = relational_operator : question_less_than
"""
def __init__(self, sString="?<"):
super().__init__("?<")
class question_less_than_or_equal(relational_operator):
"""
unique_id = relational_operator : question_less_than_or_equal
"""
def __init__(self, sString="?<="):
super().__init__("?<=")
class question_greater_than(relational_operator):
"""
unique_id = relational_operator : question_greater_than
"""
def __init__(self, sString="?>"):
super().__init__("?>")
class question_greater_than_or_equal(relational_operator):
"""
unique_id = relational_operator : question_greater_than_or_equal
"""
def __init__(self, sString="?>="):
super().__init__("?>=")