57 lines
1.0 KiB
Python
57 lines
1.0 KiB
Python
|
|
from vsg import parser
|
|
|
|
|
|
class label(parser.label):
|
|
'''
|
|
unique_id = next_statement : label
|
|
'''
|
|
|
|
def __init__(self, sString):
|
|
parser.label.__init__(self, sString)
|
|
|
|
|
|
class label_colon(parser.label_colon):
|
|
'''
|
|
unique_id = next_statement : label_colon
|
|
'''
|
|
|
|
def __init__(self):
|
|
parser.label_colon.__init__(self)
|
|
|
|
|
|
class next_keyword(parser.keyword):
|
|
'''
|
|
unique_id = next_statement : next_keyword
|
|
'''
|
|
|
|
def __init__(self, sString):
|
|
parser.keyword.__init__(self, sString)
|
|
|
|
|
|
class loop_label(parser.label):
|
|
'''
|
|
unique_id = next_statement : loop_label
|
|
'''
|
|
|
|
def __init__(self, sString):
|
|
parser.label.__init__(self, sString)
|
|
|
|
|
|
class when_keyword(parser.keyword):
|
|
'''
|
|
unique_id = next_statement : when_keyword
|
|
'''
|
|
|
|
def __init__(self, sString):
|
|
parser.keyword.__init__(self, sString)
|
|
|
|
|
|
class semicolon(parser.semicolon):
|
|
'''
|
|
unique_id = next_statement : semicolon
|
|
'''
|
|
|
|
def __init__(self, sString=';'):
|
|
parser.semicolon.__init__(self)
|