Exemple #1
0
def detect(iToken, lObjects):
    '''
    architecture_declarative_part ::=
        { block_declarative_item }
    '''

    return utils.detect_submodule(iToken, lObjects, block_declarative_item)
Exemple #2
0
def detect(iToken, lObjects):
    '''
    entity_statement_part ::=
        { entity_statement }
    '''

    return utils.detect_submodule(iToken, lObjects, entity_statement)
Exemple #3
0
def detect(iToken, lObjects):
    '''
    entity_declarative_part ::=
        { entity_declarative_item }
    '''

    return utils.detect_submodule(iToken, lObjects, entity_declarative_item)
Exemple #4
0
def classify(iToken, lObjects):

    iCurrent = utils.tokenize_label(iToken, lObjects, token.case_label,
                                    token.label_colon)
    iCurrent = utils.assign_next_token_required('case', token.case_keyword,
                                                iCurrent, lObjects)
    iCurrent = utils.assign_next_token_if('?', token.question_mark, iCurrent,
                                          lObjects)

    iCurrent = expression.classify_until(['is'], iCurrent, lObjects)

    iCurrent = utils.assign_next_token_required('is', token.is_keyword,
                                                iCurrent, lObjects)

    iCurrent = utils.detect_submodule(iCurrent, lObjects,
                                      case_statement_alternative)

    iCurrent = utils.assign_next_token_required('end', token.end_keyword,
                                                iToken, lObjects)
    iCurrent = utils.assign_next_token_required('case', token.end_case_keyword,
                                                iCurrent, lObjects)
    iCurrent = utils.assign_next_token_if('?', token.question_mark, iCurrent,
                                          lObjects)
    iCurrent = utils.assign_next_token_if_not(';', token.end_case_label,
                                              iCurrent, lObjects)
    iCurrent = utils.assign_next_token_required(';', token.semicolon, iCurrent,
                                                lObjects)

    return iCurrent
Exemple #5
0
def detect(iToken, lObjects):
    '''
    context_clause ::=
        { context_item }
    '''
    iCurrent = utils.detect_submodule(iToken, lObjects, context_item)
    return iCurrent
def detect(iToken, lObjects):
    '''
    protected_type_body_declarative_part ::=
        { protected_type_body_declarative_item }
    '''

    return utils.detect_submodule(iToken, lObjects,
                                  protected_type_body_declarative_item)
Exemple #7
0
def classify(iToken, lObjects):

    iCurrent = utils.tokenize_label(iToken, lObjects, token.generate_label, token.label_colon)

    iCurrent = utils.assign_next_token_required('case', token.case_keyword, iCurrent, lObjects)

    iCurrent = expression.classify_until(['generate'], iCurrent, lObjects)

    iCurrent = utils.assign_next_token_required('generate', token.generate_keyword, iCurrent, lObjects)

    iToken = utils.detect_submodule(iToken, lObjects, case_generate_alternative)

    iCurrent = utils.assign_next_token_required('end', token.end_keyword, iCurrent, lObjects)
    iCurrent = utils.assign_next_token_required('generate', token.end_generate_keyword, iCurrent, lObjects)
    iCurrent = utils.assign_next_token_if_not(';', token.end_generate_label, iCurrent, lObjects)
    iCurrent = utils.assign_next_token_required(';', token.semicolon, iCurrent, lObjects)

    return iCurrent