Пример #1
0
def rem_insert_end():
    return literal('<#<')
Пример #2
0
def until_block_maybe():
    return __(r'.*?(?=>)'), And(literal('>'))
Пример #3
0
def ref_insert_end():
    return literal('<')
Пример #4
0
def rem_insert_start():
    return literal('>#>')
Пример #5
0
def ref_insert_start():
    return literal('>'), And([literal('['), literal('{')])
Пример #6
0
def ref_insert_middle():
    return [(literal('['), identifier, literal(']')),
            (literal('{'), identifier, literal('}'))], And(literal('<'))
Пример #7
0
def block_freeform_end():
    return literal('}'), anyws, block_end
Пример #8
0
def block_freeform():
    return literal('{'), ZeroOrMore((ws, literal('<-{'))),
Пример #9
0
def block_end():
    return literal('<<<')
Пример #10
0
def block_tabular():
    return literal('<'), ws
Пример #11
0
def block_start():
    return literal('>->'), identifier, literal('<'), [
        literal('+'), literal('-')
    ]