Source code for immuneML.dsl.definition_parsers.DefinitionParserOutput

from immuneML.dsl.symbol_table.SymbolTable import SymbolTable
from immuneML.dsl.symbol_table.SymbolType import SymbolType


[docs]class DefinitionParserOutput: def __init__(self, symbol_table: SymbolTable, specification: dict): assert any(len(symbol_table.get_by_type(symbol_type)) > 0 for symbol_type in [t for t in SymbolType]), \ "DefinitionParserOutput: symbol table has not been populated by objects of any type." self.symbol_table = symbol_table self.specification = specification