Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / cython / src / Cython / Plex / __init__.py
blob22b9bba3b8cf669336dc71d3531d0e77c02c0e30
1 #=======================================================================
3 # Python Lexical Analyser
5 #=======================================================================
7 """
8 The Plex module provides lexical analysers with similar capabilities
9 to GNU Flex. The following classes and functions are exported;
10 see the attached docstrings for more information.
12 Scanner For scanning a character stream under the
13 direction of a Lexicon.
15 Lexicon For constructing a lexical definition
16 to be used by a Scanner.
18 Str, Any, AnyBut, AnyChar, Seq, Alt, Opt, Rep, Rep1,
19 Bol, Eol, Eof, Empty
21 Regular expression constructors, for building pattern
22 definitions for a Lexicon.
24 State For defining scanner states when creating a
25 Lexicon.
27 TEXT, IGNORE, Begin
29 Actions for associating with patterns when
30 creating a Lexicon.
31 """
33 from Actions import TEXT, IGNORE, Begin
34 from Lexicons import Lexicon, State
35 from Regexps import RE, Seq, Alt, Rep1, Empty, Str, Any, AnyBut, AnyChar, Range
36 from Regexps import Opt, Rep, Bol, Eol, Eof, Case, NoCase
37 from Scanners import Scanner