Did I find the right examples for you? yes no

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)
Lexicon(specification) builds a lexical analyser from the given
|specification|. The specification consists of a list of
specification items. Each specification item may be either:

   1) A token definition, which is a tuple:

         (pattern, action)

      The |pattern| is a regular axpression built using the
      constructors defined in the Plex module.(more...)

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/Lexicon.py   essig(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))    
 
    return Lexicon([
        (name, IDENT),
        (intliteral, 'INT'),

src/p/l/plexnet-HEAD/third_party/python/Cython/Compiler/Lexicon.py   plexnet(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))    
 
    return Lexicon([
        (name, 'IDENT'),
        (intliteral, 'INT'),

src/c/y/Cython-0.20.1/Cython/Compiler/Lexicon.py   Cython(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))
 
    return Lexicon([
        (name, IDENT),
        (intliteral, 'INT'),

src/c/y/cython-HEAD/Cython/Compiler/Lexicon.py   cython(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))
 
    return Lexicon([
        (name, IDENT),
        (intliteral, 'INT'),

src/p/y/pylibs-HEAD/Cython/Compiler/Lexicon.py   pylibs(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))    
 
    return Lexicon([
        (name, IDENT),
        (intliteral, 'INT'),

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Lexicon.py   CythonCTypesBackend(Download)
def make_lexicon():
    from Cython.Plex import \
        Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
        TEXT, IGNORE, State, Lexicon
    from Scanning import Method
    comment = Str("#") + Rep(AnyBut("\n"))
 
    return Lexicon([
        (name, IDENT),
        (intliteral, 'INT'),