Funcparserlib

An Introduction

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

letter = p.some(lambda x: True) >> tag('text')
anything = stamp | relstamp | color | jump | rgb | newline | clear | letter
everything = p.many(anything) + p.skip(p.finished)
return everything.parse(text_to_be_parsed)

everything.parse('[1.0]word[+0.5]') = 
    [('time', 1.0),
     ('text', 'w'),
     ('text', 'o'),
     ('text', 'r'),
     ('text', 'd'),
     ('reltime', 0.5)]
Name:
Mail: (not shown)

Please type this: