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