25 lines
574 B
Python
25 lines
574 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg.token import condition_clause as token
|
|
from vsg.vhdlFile import utils
|
|
from vsg.vhdlFile.classify import condition
|
|
|
|
|
|
def detect(iToken, lObjects):
|
|
"""
|
|
condition_clause ::=
|
|
until condition
|
|
"""
|
|
|
|
if utils.is_next_token("until", iToken, lObjects):
|
|
return True
|
|
return False
|
|
|
|
|
|
def classify_until(lUntils, iToken, lObjects):
|
|
iCurrent = utils.assign_next_token_required("until", token.until_keyword, iToken, lObjects)
|
|
|
|
iCurrent = condition.classify_until(lUntils, iCurrent, lObjects)
|
|
|
|
return iCurrent
|