def parse(text):
    """Parses some SequencerDSL text into an AST"""
    from SequencerDSLParser import SequencerDSLParser
    from ast import strip_block_comments, Semantics
    comment_stripped_text = strip_block_comments(text)
    parser = SequencerDSLParser(whitespace='\t ;\n')
    semantics = Semantics()
    ast = parser.parse(comment_stripped_text, rule_name='readout',
        semantics=semantics)
    ast['parameters'] = semantics.parameters
    ast['sequences'] = semantics.sequences
    return ast
