comparison env/lib/python3.9/site-packages/pyparsing-2.4.7.dist-info/METADATA @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 Metadata-Version: 2.1
2 Name: pyparsing
3 Version: 2.4.7
4 Summary: Python parsing module
5 Home-page: https://github.com/pyparsing/pyparsing/
6 Author: Paul McGuire
7 Author-email: ptmcg@users.sourceforge.net
8 License: MIT License
9 Download-URL: https://pypi.org/project/pyparsing/
10 Platform: UNKNOWN
11 Classifier: Development Status :: 5 - Production/Stable
12 Classifier: Intended Audience :: Developers
13 Classifier: Intended Audience :: Information Technology
14 Classifier: License :: OSI Approved :: MIT License
15 Classifier: Operating System :: OS Independent
16 Classifier: Programming Language :: Python
17 Classifier: Programming Language :: Python :: 2
18 Classifier: Programming Language :: Python :: 2.6
19 Classifier: Programming Language :: Python :: 2.7
20 Classifier: Programming Language :: Python :: 3
21 Classifier: Programming Language :: Python :: 3.3
22 Classifier: Programming Language :: Python :: 3.4
23 Classifier: Programming Language :: Python :: 3.5
24 Classifier: Programming Language :: Python :: 3.6
25 Classifier: Programming Language :: Python :: 3.7
26 Classifier: Programming Language :: Python :: 3.8
27 Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*
28
29 PyParsing -- A Python Parsing Module
30 ====================================
31
32 |Build Status|
33
34 Introduction
35 ============
36
37 The pyparsing module is an alternative approach to creating and
38 executing simple grammars, vs. the traditional lex/yacc approach, or the
39 use of regular expressions. The pyparsing module provides a library of
40 classes that client code uses to construct the grammar directly in
41 Python code.
42
43 *[Since first writing this description of pyparsing in late 2003, this
44 technique for developing parsers has become more widespread, under the
45 name Parsing Expression Grammars - PEGs. See more information on PEGs at*
46 https://en.wikipedia.org/wiki/Parsing_expression_grammar *.]*
47
48 Here is a program to parse ``"Hello, World!"`` (or any greeting of the form
49 ``"salutation, addressee!"``):
50
51 .. code:: python
52
53 from pyparsing import Word, alphas
54 greet = Word(alphas) + "," + Word(alphas) + "!"
55 hello = "Hello, World!"
56 print(hello, "->", greet.parseString(hello))
57
58 The program outputs the following::
59
60 Hello, World! -> ['Hello', ',', 'World', '!']
61
62 The Python representation of the grammar is quite readable, owing to the
63 self-explanatory class names, and the use of '+', '|' and '^' operator
64 definitions.
65
66 The parsed results returned from ``parseString()`` can be accessed as a
67 nested list, a dictionary, or an object with named attributes.
68
69 The pyparsing module handles some of the problems that are typically
70 vexing when writing text parsers:
71
72 - extra or missing whitespace (the above program will also handle ``"Hello,World!"``, ``"Hello , World !"``, etc.)
73 - quoted strings
74 - embedded comments
75
76 The examples directory includes a simple SQL parser, simple CORBA IDL
77 parser, a config file parser, a chemical formula parser, and a four-
78 function algebraic notation parser, among many others.
79
80 Documentation
81 =============
82
83 There are many examples in the online docstrings of the classes
84 and methods in pyparsing. You can find them compiled into online docs
85 at https://pyparsing-docs.readthedocs.io/en/latest/. Additional
86 documentation resources and project info are listed in the online
87 GitHub wiki, at https://github.com/pyparsing/pyparsing/wiki. An
88 entire directory of examples is at
89 https://github.com/pyparsing/pyparsing/tree/master/examples.
90
91 License
92 =======
93
94 MIT License. See header of pyparsing.py
95
96 History
97 =======
98
99 See CHANGES file.
100
101 .. |Build Status| image:: https://travis-ci.org/pyparsing/pyparsing.svg?branch=master
102 :target: https://travis-ci.org/pyparsing/pyparsing
103
104