This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.0 KiB

  1. import re
  2. from setuptools import setup
  3. __version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read())
  4. setup(
  5. name = "lark-parser",
  6. version = __version__,
  7. packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars'],
  8. requires = [],
  9. install_requires = [],
  10. package_data = {
  11. '': ['*.md', '*.g'],
  12. 'docs': ['*.png'],
  13. },
  14. # metadata for upload to PyPI
  15. author = "Erez Shinan",
  16. author_email = "erezshin@gmail.com",
  17. description = "a modern parsing library",
  18. license = "MIT",
  19. keywords = "Earley LALR parser parsing ast",
  20. url = "https://github.com/erezsh/lark",
  21. download_url = "https://github.com/erezsh/lark/tarball/master",
  22. long_description='''
  23. Lark is a modern general-purpose parsing library for Python.
  24. Lark focuses on simplicity and power. It lets you choose between two parsing algorithms:
  25. Earley : Parses all context-free grammars (even ambiguous ones)! It is the default.
  26. LALR(1): Only LR grammars. Outperforms PLY and most if not all other pure-python parsing libraries.
  27. Both algorithms are written in Python and can be used interchangably with the same grammar (aside for algorithmic restrictions). See "Comparison to other parsers" for more details.
  28. Lark can automagically build an AST from your grammar, without any more code on your part.
  29. Features:
  30. - EBNF grammar with a little extra
  31. - Earley & LALR(1)
  32. - Builds an AST automagically based on the grammar
  33. - Automatic line & column tracking
  34. - Automatic token collision resolution (unless both tokens are regexps)
  35. - Python 2 & 3 compatible
  36. - Unicode fully supported
  37. ''',
  38. classifiers=[
  39. "Development Status :: 3 - Alpha",
  40. "Intended Audience :: Developers",
  41. "Programming Language :: Python :: 2.7",
  42. "Programming Language :: Python :: 3",
  43. "Topic :: Software Development :: Libraries :: Python Modules",
  44. "Topic :: Text Processing :: General",
  45. "License :: OSI Approved :: MIT License",
  46. ],
  47. )