My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#LICENCE

'''
A replacement for Python's `re` package that uses the quick engine.
'''

from lepl.rxpy.compat.module import Re
from lepl.rxpy.engine.simple.engine import LexerEngine

_re = Re(LexerEngine, 'Lexer')

compile = _re.compile
RegexObject = _re.RegexObject
MatchIterator = _re.MatchIterator
match = _re.match
search = _re.search
findall = _re.findall
finditer = _re.finditer
sub = _re.sub
subn = _re.subn
split = _re.split
error = _re.error
escape = _re.escape
Scanner = _re.Scanner

(I, M, S, U, X, A, _L, _C, _E, _U, _G, _B, IGNORECASE, MULTILINE, DOT_ALL, UNICODE, VERBOSE, ASCII, _LOOP_UNROLL, _CHARS, _EMPTY, _UNSAFE, _GROUPS, _LOOKBACK) = _re.FLAGS

Change log

a42a1fba1183 by and...@acooke.org on Jul 6, 2011   Diff
heh.  just added a matching engined
intended for the lexer in what, an hour?
Go to: 
Project members, sign in to write a code review

Older revisions

c899c5275674 by and...@acooke.org on Jul 3, 2011   Diff
oops.  fixing errors introduced
earlier
09a59c3a482e by and...@acooke.org on Jun 30, 2011   Diff
slowly fixing backtrack
e200243f0586 by and...@acooke.org on Jun 26, 2011   Diff
compiled replacement
All revisions of this file

File info

Size: 692 bytes, 26 lines
Powered by Google Project Hosting