{ "info": { "author": "Tetsu Takaishi", "author_email": "te2fm.t@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Lisp", "Programming Language :: Python :: 2", "Programming Language :: Scheme", "Topic :: Software Development :: Interpreters" ], "description": "======\nLizpop \n======\n\nLizpop is Scheme interpreter in Python.\n \nInstallation\n============\n\nRequirements:\n\n Lizpop requires Python 2.5 or later, but does not work in Python3.\n\nTo install:\n\n Simply run ``python setup.py install``. \n\n e.g. ::\n\n $ tar zxvf lizpop-0.4.0.tar.gz \n $ cd lizpop-0.4.0\n $ sudo python setup.py install\n\nUsage\n=====\nTo run interactively::\n\n $ python -O -m lizpop.run\n\nTo run a Scheme script in a file::\n\n $ python -O -m lizpop.run yourfile.scm\n\nFor more info about command-line options::\n\n $ python -O -m lizpop.run -h\n\nFeatures\n========\n\nSubset of Scheme R5RS\n\n See the `Restrictions`_ section for more details.\n\nHas interfaces to Python\n\n e.g. ::\n\n $ cat helloworld.py \n def hello(s=\"world\"):\n return u\"Hello %s!\" % s.capitalize()\n\n $ python -O -m lizpop.run\n > (define *helloworld* (import \"helloworld\"))\n > (define hello (attr *helloworld* 'hello))\n > (hello \"friends\")\n \"Hello Friends!\"\n\n\n For more details, See the **IFPY.rst** file in this package.\n\nRegular Expression literal.\n\n The following literal is a Regular Expression Object. ::\n\n #/PATTERN/FLAGS\n PATTERN: Regular expression pattern\n FLAGS: Regular expression flags.\n i-- ignore case m-- multi-line s-- dot matches all\n u-- Unicode dependent L-- locale dependent x-- verbose\n\n Examples ::\n\n ;; A simple matching\n > (re-search #/(\\d+):(\\d+)/ \"Aug 14\") ;; not match\n #f \n > (re-search #/(\\d+):(\\d+)/ \"Aug 14 08:30\") ;; match\n <_sre.SRE_Match object at ...>\n\n ;; Get subgroup\n > (re-group (re-search #/(\\d+):(\\d+)/ \"Aug 14 08:30\") 1 2)\n (\"08\" \"30\")\n\n ;; Replace string\n > (re-gsub #/<(\\/?)h\\d>/i \"<\\\\1H3>\" \"