Your IP : 216.73.216.85
�� �docutils.nodes��document���)��}�(� rawsource�� ��children�]�h �section���)��}�(hhh]�(h �title���)��}�(h�pyparsing module�h]�h �Text����pyparsing module�����}�(hh�parent�hhh�source�N�line�Nuba�
attributes�}�(�ids�]��classes�]��names�]��dupnames�]��backrefs�]�u�tagname�hhhhhh�8/builddir/build/BUILD/pyparsing-3.0.9/docs/pyparsing.rst�hKub�sphinx.addnodes��index���)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(�single��pyparsing (module)��module-pyparsing�hNt�auh)h,hhhhh�R/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/__init__.py:docstring of pyparsing�hKubh
)��}�(hhh]�(h)��}�(h�Mpyparsing module - Classes and methods to define and execute parsing grammars�h]�h�Mpyparsing module - Classes and methods to define and execute parsing grammars�����}�(hhChhAhhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hhh>hhh�R/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/__init__.py:docstring of pyparsing�hKubh � paragraph���)��}�(hXu The pyparsing module is an alternative approach to creating and
executing simple grammars, vs. the traditional lex/yacc approach, or the
use of regular expressions. With pyparsing, you don't need to learn
a new syntax for defining grammars or matching expressions - the parsing
module provides a library of classes that you use to construct the
grammar directly in Python.�h]�hXw The pyparsing module is an alternative approach to creating and
executing simple grammars, vs. the traditional lex/yacc approach, or the
use of regular expressions. With pyparsing, you don’t need to learn
a new syntax for defining grammars or matching expressions - the parsing
module provides a library of classes that you use to construct the
grammar directly in Python.�����}�(hhThhRhhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKhh>hhubhQ)��}�(hXM Here is a program to parse "Hello, World!" (or any greeting of the form
``"<salutation>, <addressee>!"``), built up using :class:`Word`,
:class:`Literal`, and :class:`And` elements
(the :meth:`'+'<ParserElement.__add__>` operators create :class:`And` expressions,
and the strings are auto-converted to :class:`Literal` expressions)::�h]�(h�LHere is a program to parse “Hello, World!” (or any greeting of the form
�����}�(h�HHere is a program to parse "Hello, World!" (or any greeting of the form
�hh`hhhNhNubh �literal���)��}�(h� ``"<salutation>, <addressee>!"``�h]�h�"<salutation>, <addressee>!"�����}�(hhhhkubah}�(h]�h!]�h#]�h%]�h']�uh)hihh`ubh�), built up using �����}�(h�), built up using �hh`hhhNhNubh+�pending_xref���)��}�(h�
:class:`Word`�h]�hj)��}�(hh�h]�h�Word�����}�(hhhh�ubah}�(h]�h!]�(�xref��py��py-class�eh#]�h%]�h']�uh)hihh�ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�h��refexplicit��� py:module�� pyparsing��py:class�N� reftarget��Word��refdoc�� pyparsing��refwarn��uh)h~hhOhKhh`ubh�,
�����}�(h�,
�hh`hhhNhNubh)��}�(h�:class:`Literal`�h]�hj)��}�(hh�h]�h�Literal�����}�(hhhh�ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihh�ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�h��refexplicit��h�h�h�Nh��Literal�h�h�h��uh)h~hhOhKhh`ubh�, and �����}�(h�, and �hh`hhhNhNubh)��}�(h�:class:`And`�h]�hj)��}�(hh�h]�h�And�����}�(hhhh�ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihh�ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�h܌refexplicit��h�h�h�Nh��And�h�h�h��uh)h~hhOhKhh`ubh� elements
(the �����}�(h� elements
(the �hh`hhhNhNubh)��}�(h�":meth:`'+'<ParserElement.__add__>`�h]�hj)��}�(hh�h]�h�'+'�����}�(hhhh�ubah}�(h]�h!]�(h��py��py-meth�eh#]�h%]�h']�uh)hihh�ubah}�(h]�h!]�h#]�h%]�h']��reftype��meth�� refdomain�h��refexplicit��h�h�h�Nh��ParserElement.__add__�h�h�h��uh)h~hhOhKhh`ubh� operators create �����}�(h� operators create �hh`hhhNhNubh)��}�(h�:class:`And`�h]�hj)��}�(hj h]�h�And�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j" �refexplicit��h�h�h�Nh��And�h�h�h��uh)h~hhOhKhh`ubh�4 expressions,
and the strings are auto-converted to �����}�(h�4 expressions,
and the strings are auto-converted to �hh`hhhNhNubh)��}�(h�:class:`Literal`�h]�hj)��}�(hj9 h]�h�Literal�����}�(hhhj; ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj7 ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jE �refexplicit��h�h�h�Nh��Literal�h�h�h��uh)h~hhOhKhh`ubh� expressions):�����}�(h� expressions):�hh`hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKhh>hhubh �
literal_block���)��}�(h��from pyparsing import Word, alphas
# define grammar of a greeting
greet = Word(alphas) + "," + Word(alphas) + "!"
hello = "Hello, World!"
print(hello, "->", greet.parse_string(hello))�h]�h��from pyparsing import Word, alphas
# define grammar of a greeting
greet = Word(alphas) + "," + Word(alphas) + "!"
hello = "Hello, World!"
print(hello, "->", greet.parse_string(hello))�����}�(hhhjb ubah}�(h]�h!]�h#]�h%]�h']�� xml:space��preserve�uh)j` hKhh>hhhhOubhQ)��}�(h�#The program outputs the following::�h]�h�"The program outputs the following:�����}�(h�"The program outputs the following:�hjr hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKhh>hhubja )��}�(h�-Hello, World! -> ['Hello', ',', 'World', '!']�h]�h�-Hello, World! -> ['Hello', ',', 'World', '!']�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hKhh>hhhhOubhQ)��}�(h��The Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of :class:`'+'<And>`,
:class:`'|'<MatchFirst>`, :class:`'^'<Or>` and :class:`'&'<Each>` operators.�h]�(h�vThe Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of �����}�(h�vThe Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of �hj� hhhNhNubh)��}�(h�:class:`'+'<And>`�h]�hj)��}�(hj� h]�h�'+'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��And�h�h�h��uh)h~hhOhKhj� ubh�,
�����}�(h�,
�hj� hhhNhNubh)��}�(h�:class:`'|'<MatchFirst>`�h]�hj)��}�(hj� h]�h�'|'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��
MatchFirst�h�h�h��uh)h~hhOhKhj� ubh�, �����}�(h�, �hj� hhhNhNubh)��}�(h�:class:`'^'<Or>`�h]�hj)��}�(hj� h]�h�'^'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��Or�h�h�h��uh)h~hhOhKhj� ubh� and �����}�(h� and �hj� hhhNhNubh)��}�(h�:class:`'&'<Each>`�h]�hj)��}�(hj h]�h�'&'�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j �refexplicit��h�h�h�Nh��Each�h�h�h��uh)h~hhOhKhj� ubh� operators.�����}�(h� operators.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKhh>hhubhQ)��}�(h��The :class:`ParseResults` object returned from
:class:`ParserElement.parseString` can be
accessed as a nested list, a dictionary, or an object with named
attributes.�h]�(h�The �����}�(h�The �hj* hhhNhNubh)��}�(h�:class:`ParseResults`�h]�hj)��}�(hj5 h]�h�ParseResults�����}�(hhhj7 ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj3 ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jA �refexplicit��h�h�h�Nh��ParseResults�h�h�h��uh)h~hhOhK!hj* ubh� object returned from
�����}�(h� object returned from
�hj* hhhNhNubh)��}�(h�":class:`ParserElement.parseString`�h]�hj)��}�(hjX h]�h�ParserElement.parseString�����}�(hhhjZ ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjV ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jd �refexplicit��h�h�h�Nh��ParserElement.parseString�h�h�h��uh)h~hhOhK!hj* ubh�T can be
accessed as a nested list, a dictionary, or an object with named
attributes.�����}�(h�T can be
accessed as a nested list, a dictionary, or an object with named
attributes.�hj* hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK!hh>hhubhQ)��}�(h�fThe pyparsing module handles some of the problems that are typically
vexing when writing text parsers:�h]�h�fThe pyparsing module handles some of the problems that are typically
vexing when writing text parsers:�����}�(hj� hj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK&hh>hhubh �block_quote���)��}�(hhh]�h �bullet_list���)��}�(hhh]�(h � list_item���)��}�(h�kextra or missing whitespace (the above program will also handle
"Hello,World!", "Hello , World !", etc.)�h]�hQ)��}�(h�kextra or missing whitespace (the above program will also handle
"Hello,World!", "Hello , World !", etc.)�h]�h�sextra or missing whitespace (the above program will also handle
“Hello,World!”, “Hello , World !”, etc.)�����}�(hj� hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK)hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubj� )��}�(h�quoted strings�h]�hQ)��}�(hj� h]�h�quoted strings�����}�(hj� hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK+hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubj� )��}�(h�embedded comments
�h]�hQ)��}�(h�embedded comments�h]�h�embedded comments�����}�(hj� hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK,hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubeh}�(h]�h!]�h#]�h%]�h']��bullet��-�uh)j� hhOhK)hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hh>hhhNhNubh
)��}�(hhh]�(h)��}�(h�Getting Started -�h]�h�Getting Started -�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hhj� hhhhOhK0ubhQ)��}�(h��Visit the classes :class:`ParserElement` and :class:`ParseResults` to
see the base classes that most other pyparsing
classes inherit from. Use the docstrings for examples of how to:�h]�(h�Visit the classes �����}�(h�Visit the classes �hj� hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hj
h]�h�
ParserElement�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j �refexplicit��h�h�h�Nh��
ParserElement�h�h�h��uh)h~hhOhK1hj� ubh� and �����}�(h� and �hj� hhhNhNubh)��}�(h�:class:`ParseResults`�h]�hj)��}�(hj- h]�h�ParseResults�����}�(hhhj/ ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj+ ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j9 �refexplicit��h�h�h�Nh��ParseResults�h�h�h��uh)h~hhOhK1hj� ubh�s to
see the base classes that most other pyparsing
classes inherit from. Use the docstrings for examples of how to:�����}�(h�s to
see the base classes that most other pyparsing
classes inherit from. Use the docstrings for examples of how to:�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK1hj� hhubj� )��}�(hhh]�j� )��}�(hhh]�(j� )��}�(h�^construct literal match expressions from :class:`Literal` and
:class:`CaselessLiteral` classes�h]�hQ)��}�(h�^construct literal match expressions from :class:`Literal` and
:class:`CaselessLiteral` classes�h]�(h�)construct literal match expressions from �����}�(h�)construct literal match expressions from �hj^ ubh)��}�(h�:class:`Literal`�h]�hj)��}�(hji h]�h�Literal�����}�(hhhjk ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjg ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�ju �refexplicit��h�h�h�Nh��Literal�h�h�h��uh)h~hhOhK5hj^ ubh� and
�����}�(h� and
�hj^ ubh)��}�(h�:class:`CaselessLiteral`�h]�hj)��}�(hj� h]�h�CaselessLiteral�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��CaselessLiteral�h�h�h��uh)h~hhOhK5hj^ ubh� classes�����}�(h� classes�hj^ ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK5hjZ ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�Hconstruct character word-group expressions using the :class:`Word`
class�h]�hQ)��}�(h�Hconstruct character word-group expressions using the :class:`Word`
class�h]�(h�5construct character word-group expressions using the �����}�(h�5construct character word-group expressions using the �hj� ubh)��}�(h�
:class:`Word`�h]�hj)��}�(hj� h]�h�Word�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��Word�h�h�h��uh)h~hhOhK7hj� ubh�
class�����}�(h�
class�hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK7hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�asee how to create repetitive expressions using :class:`ZeroOrMore`
and :class:`OneOrMore` classes�h]�hQ)��}�(h�asee how to create repetitive expressions using :class:`ZeroOrMore`
and :class:`OneOrMore` classes�h]�(h�/see how to create repetitive expressions using �����}�(h�/see how to create repetitive expressions using �hj� ubh)��}�(h�:class:`ZeroOrMore`�h]�hj)��}�(hj h]�h�
ZeroOrMore�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j �refexplicit��h�h�h�Nh��
ZeroOrMore�h�h�h��uh)h~hhOhK9hj� ubh�
and �����}�(h�
and �hj� ubh)��}�(h�:class:`OneOrMore`�h]�hj)��}�(hj' h]�h� OneOrMore�����}�(hhhj) ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj% ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j3 �refexplicit��h�h�h�Nh�� OneOrMore�h�h�h��uh)h~hhOhK9hj� ubh� classes�����}�(h� classes�hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK9hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h��use :class:`'+'<And>`, :class:`'|'<MatchFirst>`, :class:`'^'<Or>`,
and :class:`'&'<Each>` operators to combine simple expressions into
more complex ones�h]�hQ)��}�(h��use :class:`'+'<And>`, :class:`'|'<MatchFirst>`, :class:`'^'<Or>`,
and :class:`'&'<Each>` operators to combine simple expressions into
more complex ones�h]�(h�use �����}�(h�use �hjX ubh)��}�(h�:class:`'+'<And>`�h]�hj)��}�(hjc h]�h�'+'�����}�(hhhje ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihja ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jo �refexplicit��h�h�h�Nh��And�h�h�h��uh)h~hhOhK;hjX ubh�, �����}�(h�, �hjX ubh)��}�(h�:class:`'|'<MatchFirst>`�h]�hj)��}�(hj� h]�h�'|'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��
MatchFirst�h�h�h��uh)h~hhOhK;hjX ubh�, �����}�(hj� hjX ubh)��}�(h�:class:`'^'<Or>`�h]�hj)��}�(hj� h]�h�'^'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��Or�h�h�h��uh)h~hhOhK;hjX ubh�,
and �����}�(h�,
and �hjX ubh)��}�(h�:class:`'&'<Each>`�h]�hj)��}�(hj� h]�h�'&'�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��Each�h�h�h��uh)h~hhOhK;hjX ubh�? operators to combine simple expressions into
more complex ones�����}�(h�? operators to combine simple expressions into
more complex ones�hjX ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK;hjT ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�Tassociate names with your parsed results using
:class:`ParserElement.setResultsName`�h]�hQ)��}�(h�Tassociate names with your parsed results using
:class:`ParserElement.setResultsName`�h]�(h�/associate names with your parsed results using
�����}�(h�/associate names with your parsed results using
�hj� ubh)��}�(h�%:class:`ParserElement.setResultsName`�h]�hj)��}�(hj h]�h�ParserElement.setResultsName�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j �refexplicit��h�h�h�Nh��ParserElement.setResultsName�h�h�h��uh)h~hhOhK>hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK>hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�Kaccess the parsed data, which is returned as a :class:`ParseResults`
object�h]�hQ)��}�(h�Kaccess the parsed data, which is returned as a :class:`ParseResults`
object�h]�(h�/access the parsed data, which is returned as a �����}�(h�/access the parsed data, which is returned as a �hj3 ubh)��}�(h�:class:`ParseResults`�h]�hj)��}�(hj> h]�h�ParseResults�����}�(hhhj@ ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj< ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jJ �refexplicit��h�h�h�Nh��ParseResults�h�h�h��uh)h~hhOhK@hj3 ubh�
object�����}�(h�
object�hj3 ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhK@hj/ ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�Vfind some helpful expression short-cuts like :class:`delimitedList`
and :class:`oneOf`�h]�hQ)��}�(h�Vfind some helpful expression short-cuts like :class:`delimitedList`
and :class:`oneOf`�h]�(h�-find some helpful expression short-cuts like �����}�(h�-find some helpful expression short-cuts like �hjo ubh)��}�(h�:class:`delimitedList`�h]�hj)��}�(hjz h]�h�
delimitedList�����}�(hhhj| ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjx ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��
delimitedList�h�h�h��uh)h~hhOhKBhjo ubh�
and �����}�(h�
and �hjo ubh)��}�(h�:class:`oneOf`�h]�hj)��}�(hj� h]�h�oneOf�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��oneOf�h�h�h��uh)h~hhOhKBhjo ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKBhjk ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubj� )��}�(h�Vfind more useful common expressions in the :class:`pyparsing_common`
namespace class
�h]�hQ)��}�(h�Tfind more useful common expressions in the :class:`pyparsing_common`
namespace class�h]�(h�+find more useful common expressions in the �����}�(h�+find more useful common expressions in the �hj� ubh)��}�(h�:class:`pyparsing_common`�h]�hj)��}�(hj� h]�h�pyparsing_common�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�h�h�Nh��pyparsing_common�h�h�h��uh)h~hhOhKDhj� ubh�
namespace class�����}�(h�
namespace class�hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhhOhKDhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjW ubeh}�(h]�h!]�h#]�h%]�h']�j� j� uh)j� hhOhK5hjT ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� hhhNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�__compat__ (class in pyparsing)��pyparsing.__compat__�hNt�auh)h,hj� hhhNhNubh+�desc���)��}�(hhh]�(h+�desc_signature���)��}�(h�
__compat__�h]�(h+�desc_annotation���)��}�(h�class �h]�h�class �����}�(hhhj( hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj" hhh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.__compat__�hNubh+�desc_addname���)��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj9 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj" hhhj6 hNubh+� desc_name���)��}�(hj$ h]�h�
__compat__�����}�(hhhjI hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj" hhhj6 hNubeh}�(h]�j ah!]�h#]�j ah%]�h']��first���module�� pyparsing��class�h�fullname�j$ uh)j hj hhhj6 hNubh+�desc_content���)��}�(hhh]�(hQ)��}�(h�-Bases: :class:`pyparsing.util.__config_flags`�h]�(h�Bases: �����}�(h�Bases: �hjf hhhNhNubh)��}�(h�&:class:`pyparsing.util.__config_flags`�h]�hj)��}�(hjq h]�h�pyparsing.util.__config_flags�����}�(hhhjs ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjo ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j} �refexplicit��h�j^ h�j$ h��pyparsing.util.__config_flags�h�h�h��uh)h~h�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.__compat__�hKhjf ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjc hhubhQ)��}�(h��A cross-version compatibility configuration for pyparsing features that will be
released in a future version. By setting values in this configuration to True,
those features can be enabled in prior versions for compatibility development
and testing.�h]�h��A cross-version compatibility configuration for pyparsing features that will be
released in a future version. By setting values in this configuration to True,
those features can be enabled in prior versions for compatibility development
and testing.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.__compat__�hKhjc hhubj� )��}�(hhh]�j� )��}�(hX! ``collect_all_And_tokens`` - flag to enable fix for Issue #63 that fixes erroneous grouping
of results names when an :class:`And` expression is nested within an :class:`Or` or :class:`MatchFirst`;
maintained for compatibility, but setting to ``False`` no longer restores pre-2.3.1
behavior�h]�hQ)��}�(hX! ``collect_all_And_tokens`` - flag to enable fix for Issue #63 that fixes erroneous grouping
of results names when an :class:`And` expression is nested within an :class:`Or` or :class:`MatchFirst`;
maintained for compatibility, but setting to ``False`` no longer restores pre-2.3.1
behavior�h]�(hj)��}�(h�``collect_all_And_tokens``�h]�h�collect_all_And_tokens�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�[ - flag to enable fix for Issue #63 that fixes erroneous grouping
of results names when an �����}�(h�[ - flag to enable fix for Issue #63 that fixes erroneous grouping
of results names when an �hj� ubh)��}�(h�:class:`And`�h]�hj)��}�(hj� h]�h�And�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j^ h�j$ h��And�h�h�h��uh)h~hj� hKhj� ubh� expression is nested within an �����}�(h� expression is nested within an �hj� ubh)��}�(h�:class:`Or`�h]�hj)��}�(hj� h]�h�Or�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j^ h�j$ h��Or�h�h�h��uh)h~hj� hKhj� ubh� or �����}�(h� or �hj� ubh)��}�(h�:class:`MatchFirst`�h]�hj)��}�(hj h]�h�
MatchFirst�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j �refexplicit��h�j^ h�j$ h��
MatchFirst�h�h�h��uh)h~hj� hKhj� ubh�/;
maintained for compatibility, but setting to �����}�(h�/;
maintained for compatibility, but setting to �hj� ubhj)��}�(h� ``False``�h]�h�False�����}�(hhhj* ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�& no longer restores pre-2.3.1
behavior�����}�(h�& no longer restores pre-2.3.1
behavior�hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� hhhj� hNubah}�(h]�h!]�h#]�h%]�h']�j� j� uh)j� hj� hKhjc hhubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj6 hNubeh}�(h]�h!]�h#]�h%]�h']��domain��py��objtype��class��desctype�j^ �noindex��uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�__diag__ (class in pyparsing)��pyparsing.__diag__�hNt�auh)h,hj� hhh�W/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.__diag__�hNubj )��}�(hhh]�(j! )��}�(h�__diag__�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhjw hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjs hhh�W/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.__diag__�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hjs hhhj� hNubjH )��}�(hju h]�h�__diag__�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjs hhhj� hNubeh}�(h]�jm ah!]�h#]�jm ah%]�h']�j\ �j] � pyparsing�j_ hj` ju uh)j hjp hhhj� hNubjb )��}�(hhh]�hQ)��}�(h�-Bases: :class:`pyparsing.util.__config_flags`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�&:class:`pyparsing.util.__config_flags`�h]�hj)��}�(hj� h]�h�pyparsing.util.__config_flags�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�ju h��pyparsing.util.__config_flags�h�h�h��uh)h~hjo hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjo hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hjp hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hjo hNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�And (class in pyparsing)��
pyparsing.And�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�MAnd(exprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�R/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj hNubjH )��}�(h�And�h]�h�And�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj hNubh+�desc_parameterlist���)��}�(h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�h+�desc_parameter���)��}�(h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�����}�(hhhj. hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj( hhhj hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j uh)j hj� hhhj hNubjb )��}�(hhh]�(hQ)��}�(h�.Bases: :class:`pyparsing.core.ParseExpression`�h]�(h�Bases: �����}�(h�Bases: �hjL hhhNhNubh)��}�(h�':class:`pyparsing.core.ParseExpression`�h]�hj)��}�(hjW h]�h�pyparsing.core.ParseExpression�����}�(hhhjY ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjU ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jc �refexplicit��h�jH h�j h��pyparsing.core.ParseExpression�h�h�h��uh)h~h�R/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And�hKhjL ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjs hKhjI hhubhQ)��}�(h��Requires all given :class:`ParseExpression` s to be found in the given order.
Expressions may be separated by whitespace.
May be constructed using the ``'+'`` operator.
May also be constructed using the ``'-'`` operator, which will
suppress backtracking.�h]�(h�Requires all given �����}�(h�Requires all given �hjz hhhNhNubh)��}�(h�:class:`ParseExpression`�h]�hj)��}�(hj� h]�h�ParseExpression�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�jH h�j h��ParseExpression�h�h�h��uh)h~h�R/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And�hKhjz ubh�l s to be found in the given order.
Expressions may be separated by whitespace.
May be constructed using the �����}�(h�l s to be found in the given order.
Expressions may be separated by whitespace.
May be constructed using the �hjz hhhNhNubhj)��}�(h�``'+'``�h]�h�'+'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjz ubh�- operator.
May also be constructed using the �����}�(h�- operator.
May also be constructed using the �hjz hhhNhNubhj)��}�(h�``'-'``�h]�h�'-'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjz ubh�, operator, which will
suppress backtracking.�����}�(h�, operator, which will
suppress backtracking.�hjz hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjI hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjI hhubja )��}�(h��integer = Word(nums)
name_expr = Word(alphas)[1, ...]
expr = And([integer("id"), name_expr("name"), integer("age")])
# more easily written as:
expr = integer("id") + name_expr("name") + integer("age")�h]�h��integer = Word(nums)
name_expr = Word(alphas)[1, ...]
expr = And([integer("id"), name_expr("name"), integer("age")])
# more easily written as:
expr = integer("id") + name_expr("name") + integer("age")�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hKnhjI hhh�[/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�!__init__() (pyparsing.And method)��pyparsing.And.__init__�hNt�auh)h,hjI hhh�[/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And.__init__�hNubj )��}�(hhh]�(j! )��}�(h�VAnd.__init__(exprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�[/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.And.__init__�hNubj' )��}�(h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�j- )��}�(h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�h�Hexprs_arg: Iterable[pyparsing.core.ParserElement], savelist: bool = True�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj hhhj hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j j` �And.__init__�uh)j hj hhhj hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj; hj9 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj6 hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ jT j` �uh)j hhhjI hj� hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ jb j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9� AtLineStart (class in pyparsing)��pyparsing.AtLineStart�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�;AtLineStart(expr: Union[pyparsing.core.ParserElement, str])�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhjx hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjt hhh�Z/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hjt hhhj� hNubjH )��}�(h�AtLineStart�h]�h�AtLineStart�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjt hhhj� hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� hhhj� hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjt hhhj� hNubeh}�(h]�jo ah!]�h#]�jo ah%]�h']�j\ �j] � pyparsing�j_ hj` j� uh)j hjq hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�2Bases: :class:`pyparsing.core.ParseElementEnhance`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�+:class:`pyparsing.core.ParseElementEnhance`�h]�hj)��}�(hj� h]�h�"pyparsing.core.ParseElementEnhance�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j� h��"pyparsing.core.ParseElementEnhance�h�h�h��uh)h~h�Z/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart�hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h�SMatches if an expression matches at the beginning of a line within
the parse string�h]�h�SMatches if an expression matches at the beginning of a line within
the parse string�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�Z/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart�hKhj� hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj
hKhj� hhubja )��}�(h��test = '''\
AAA this line
AAA and this line
AAA but not this one
B AAA and definitely not this one
'''
for t in (AtLineStart('AAA') + restOfLine).search_string(test):
print(t)�h]�h��test = '''\
AAA this line
AAA and this line
AAA but not this one
B AAA and definitely not this one
'''
for t in (AtLineStart('AAA') + restOfLine).search_string(test):
print(t)�����}�(hhhj
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj� hhhj
ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hj
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj
hKhj� hhubja )��}�(h�/['AAA', ' this line']
['AAA', ' and this line']�h]�h�/['AAA', ' this line']
['AAA', ' and this line']�����}�(hhhj.
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj� hhh�c/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�)__init__() (pyparsing.AtLineStart method)��pyparsing.AtLineStart.__init__�hNt�auh)h,hj� hhh�c/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart.__init__�hNubj )��}�(hhh]�(j! )��}�(h�DAtLineStart.__init__(expr: Union[pyparsing.core.ParserElement, str])�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhjS
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjO
hhh�c/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtLineStart.__init__�hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhjf
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hjb
hhhja
hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjO
hhhja
hNubeh}�(h]�jI
ah!]�h#]�jI
ah%]�h']�j\ �j] � pyparsing�j_ j� j` �AtLineStart.__init__�uh)j hjL
hhhja
hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj�
hj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhjK
hKhj�
hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hjL
hhhja
hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j�
j` �uh)j hhhj� hjK
hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hjq hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j�
j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�"AtStringStart (class in pyparsing)��pyparsing.AtStringStart�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�=AtStringStart(expr: Union[pyparsing.core.ParserElement, str])�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj�
hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj�
hhhj�
hNubjH )��}�(h�
AtStringStart�h]�h�
AtStringStart�����}�(hhhj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj�
hhhj�
hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj�
hhhj�
hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj�
hhhj�
hNubeh}�(h]�j�
ah!]�h#]�j�
ah%]�h']�j\ �j] � pyparsing�j_ hj` j�
uh)j hj�
hhhj�
hNubjb )��}�(hhh]�(hQ)��}�(h�2Bases: :class:`pyparsing.core.ParseElementEnhance`�h]�(h�Bases: �����}�(h�Bases: �hj hhhNhNubh)��}�(h�+:class:`pyparsing.core.ParseElementEnhance`�h]�hj)��}�(hj h]�h�"pyparsing.core.ParseElementEnhance�����}�(hhhj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j( �refexplicit��h�j
h�j�
h��"pyparsing.core.ParseElementEnhance�h�h�h��uh)h~h�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart�hKhj ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj8 hKhj hhubhQ)��}�(h�DMatches if expression matches at the beginning of the parse
string::�h]�h�CMatches if expression matches at the beginning of the parse
string:�����}�(h�CMatches if expression matches at the beginning of the parse
string:�hj? hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart�hKhj hhubja )��}�(h��AtStringStart(Word(nums)).parse_string("123")
# prints ["123"]
AtStringStart(Word(nums)).parse_string(" 123")
# raises ParseException�h]�h��AtStringStart(Word(nums)).parse_string("123")
# prints ["123"]
AtStringStart(Word(nums)).parse_string(" 123")
# raises ParseException�����}�(hhhjO ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj hhh�e/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�+__init__() (pyparsing.AtStringStart method)�� pyparsing.AtStringStart.__init__�hNt�auh)h,hj hhh�e/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart.__init__�hNubj )��}�(hhh]�(j! )��}�(h�FAtStringStart.__init__(expr: Union[pyparsing.core.ParserElement, str])�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhjt hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjp hhh�e/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.AtStringStart.__init__�hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� hhhj� hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjp hhhj� hNubeh}�(h]�jj ah!]�h#]�jj ah%]�h']�j\ �j] � pyparsing�j_ j�
j` �AtStringStart.__init__�uh)j hjm hhhj� hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhjl hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hjm hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj hjl hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj�
hhhj�
hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�$CaselessKeyword (class in pyparsing)��pyparsing.CaselessKeyword�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h��CaselessKeyword(match_string: str = '', ident_chars: Union[str, NoneType] = None, *, matchString: str = '', identChars: Union[str, NoneType] = None)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessKeyword�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj� hNubjH )��}�(h�CaselessKeyword�h]�h�CaselessKeyword�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj� hNubj' )��}�(h��match_string: str = '', ident_chars: Union[str, NoneType] = None, *, matchString: str = '', identChars: Union[str, NoneType] = None�h]�(j- )��}�(h�match_string: str = ''�h]�h�match_string: str = ''�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�ident_chars: Union[str�h]�h�ident_chars: Union[str�����}�(hhhj" ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj0 ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�*�h]�h�*�����}�(hhhj> ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�matchString: str = ''�h]�h�matchString: str = ''�����}�(hhhjL ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�identChars: Union[str�h]�h�identChars: Union[str�����}�(hhhjZ ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhjh ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�&Bases: :class:`pyparsing.core.Keyword`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�:class:`pyparsing.core.Keyword`�h]�hj)��}�(hj� h]�h�pyparsing.core.Keyword�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j h��pyparsing.core.Keyword�h�h�h��uh)h~h�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessKeyword�hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h�%Caseless version of :class:`Keyword`.�h]�(h�Caseless version of �����}�(h�Caseless version of �hj� hhhNhNubh)��}�(h�:class:`Keyword`�h]�hj)��}�(hj� h]�h�Keyword�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j h��Keyword�h�h�h��uh)h~h�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessKeyword�hKhj� ubh�.�����}�(h�.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubja )��}�(h�PCaselessKeyword("CMD")[1, ...].parse_string("cmd CMD Cmd10")
# -> ['CMD', 'CMD']�h]�h�PCaselessKeyword("CMD")[1, ...].parse_string("cmd CMD Cmd10")
# -> ['CMD', 'CMD']�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj� hhhj� ubhQ)��}�(h�5(Contrast with example for :class:`CaselessLiteral`.)�h]�(h�(Contrast with example for �����}�(h�(Contrast with example for �hj
hhhNhNubh)��}�(h�:class:`CaselessLiteral`�h]�hj)��}�(hj
h]�h�CaselessLiteral�����}�(hhhj
ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj
ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j
�refexplicit��h�j� h�j h��CaselessLiteral�h�h�h��uh)h~hj� hKhj
ubh�.)�����}�(h�.)�hj
hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�-__init__() (pyparsing.CaselessKeyword method)��"pyparsing.CaselessKeyword.__init__�hNt�auh)h,hj� hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessKeyword.__init__�hNubj )��}�(hhh]�(j! )��}�(h��CaselessKeyword.__init__(match_string: str = '', ident_chars: Union[str, NoneType] = None, *, matchString: str = '', identChars: Union[str, NoneType] = None)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhjL
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjH
hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessKeyword.__init__�hNubj' )��}�(h��match_string: str = '', ident_chars: Union[str, NoneType] = None, *, matchString: str = '', identChars: Union[str, NoneType] = None�h]�(j- )��}�(h�match_string: str = ''�h]�h�match_string: str = ''�����}�(hhhj_
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(h�ident_chars: Union[str�h]�h�ident_chars: Union[str�����}�(hhhjm
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj{
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(hj@ h]�h�*�����}�(hhhj�
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(h�matchString: str = ''�h]�h�matchString: str = ''�����}�(hhhj�
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(h�identChars: Union[str�h]�h�identChars: Union[str�����}�(hhhj�
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj�
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj[
ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjH
hhhjZ
hNubeh}�(h]�jB
ah!]�h#]�jB
ah%]�h']�j\ �j] � pyparsing�j_ j j` �CaselessKeyword.__init__�uh)j hjE
hhhjZ
hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj�
hj�
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhjD
hKhj�
hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hjE
hhhjZ
hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j�
j` �uh)j hhhj� hjD
hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j�
j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�$CaselessLiteral (class in pyparsing)��pyparsing.CaselessLiteral�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�ACaselessLiteral(match_string: str = '', *, matchString: str = '')�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhh�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessLiteral�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj hhhj hNubjH )��}�(h�CaselessLiteral�h]�h�CaselessLiteral�����}�(hhhj- hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhhj hNubj' )��}�(h�0match_string: str = '', *, matchString: str = ''�h]�(j- )��}�(h�match_string: str = ''�h]�h�match_string: str = ''�����}�(hhhj? ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj; ubj- )��}�(hj@ h]�h�*�����}�(hhhjM ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj; ubj- )��}�(h�matchString: str = ''�h]�h�matchString: str = ''�����}�(hhhjZ ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj; ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ hj` j/ uh)j hj hhhj hNubjb )��}�(hhh]�(hQ)��}�(h�&Bases: :class:`pyparsing.core.Literal`�h]�(h�Bases: �����}�(h�Bases: �hjx hhhNhNubh)��}�(h�:class:`pyparsing.core.Literal`�h]�hj)��}�(hj� h]�h�pyparsing.core.Literal�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�jt h�j/ h��pyparsing.core.Literal�h�h�h��uh)h~h�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessLiteral�hKhjx ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhju hhubhQ)��}�(h��Token to match a specified string, ignoring case of letters.
Note: the matched results will always be in the case of the given
match string, NOT the case of the input text.�h]�h��Token to match a specified string, ignoring case of letters.
Note: the matched results will always be in the case of the given
match string, NOT the case of the input text.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�^/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessLiteral�hKhju hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhju hhubja )��}�(h�WCaselessLiteral("CMD")[1, ...].parse_string("cmd CMD Cmd10")
# -> ['CMD', 'CMD', 'CMD']�h]�h�WCaselessLiteral("CMD")[1, ...].parse_string("cmd CMD Cmd10")
# -> ['CMD', 'CMD', 'CMD']�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hju hhhj� ubhQ)��}�(h�5(Contrast with example for :class:`CaselessKeyword`.)�h]�(h�(Contrast with example for �����}�(h�(Contrast with example for �hj� hhhNhNubh)��}�(h�:class:`CaselessKeyword`�h]�hj)��}�(hj� h]�h�CaselessKeyword�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�jt h�j/ h��CaselessKeyword�h�h�h��uh)h~hj� hK
hj� ubh�.)�����}�(h�.)�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK
hju hhubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�-__init__() (pyparsing.CaselessLiteral method)��"pyparsing.CaselessLiteral.__init__�hNt�auh)h,hju hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessLiteral.__init__�hNubj )��}�(hhh]�(j! )��}�(h�JCaselessLiteral.__init__(match_string: str = '', *, matchString: str = '')�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CaselessLiteral.__init__�hNubj' )��}�(h�0match_string: str = '', *, matchString: str = ''�h]�(j- )��}�(h�match_string: str = ''�h]�h�match_string: str = ''�����}�(hhhj- ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj) ubj- )��}�(hj@ h]�h�*�����}�(hhhj; ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj) ubj- )��}�(h�matchString: str = ''�h]�h�matchString: str = ''�����}�(hhhjH ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj) ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj( hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ j/ j` �CaselessLiteral.__init__�uh)j hj hhhj( hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hji hjg hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj hKhjd hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj( hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhju hj hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�CharsNotIn (class in pyparsing)��pyparsing.CharsNotIn�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�bCharsNotIn(not_chars: str = '', min: int = 1, max: int = 0, exact: int = 0, *, notChars: str = '')�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj� hNubjH )��}�(h�
CharsNotIn�h]�h�
CharsNotIn�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj� hNubj' )��}�(h�Vnot_chars: str = '', min: int = 1, max: int = 0, exact: int = 0, *, notChars: str = ''�h]�(j- )��}�(h�not_chars: str = ''�h]�h�not_chars: str = ''�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�min: int = 1�h]�h�min: int = 1�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�max: int = 0�h]�h�max: int = 0�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�exact: int = 0�h]�h�exact: int = 0�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(hj@ h]�h�*�����}�(hhhj
ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�notChars: str = ''�h]�h�notChars: str = ''�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j� uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�$Bases: :class:`pyparsing.core.Token`�h]�(h�Bases: �����}�(h�Bases: �hj8 hhhNhNubh)��}�(h�:class:`pyparsing.core.Token`�h]�hj)��}�(hjC h]�h�pyparsing.core.Token�����}�(hhhjE ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjA ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jO �refexplicit��h�j4 h�j� h��pyparsing.core.Token�h�h�h��uh)h~h�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn�hKhj8 ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj_ hKhj5 hhubhQ)��}�(hX� Token for matching words composed of characters *not* in a given
set (will include whitespace in matched characters if not listed in
the provided exclusion set - see example). Defined with string
containing all disallowed characters, and an optional minimum,
maximum, and/or exact length. The default value for ``min`` is
1 (a minimum value < 1 is not valid); the default values for
``max`` and ``exact`` are 0, meaning no maximum or exact
length restriction.�h]�(h�0Token for matching words composed of characters �����}�(h�0Token for matching words composed of characters �hjf hhhNhNubh �emphasis���)��}�(h�*not*�h]�h�not�����}�(hhhjq ubah}�(h]�h!]�h#]�h%]�h']�uh)jo hjf ubhX in a given
set (will include whitespace in matched characters if not listed in
the provided exclusion set - see example). Defined with string
containing all disallowed characters, and an optional minimum,
maximum, and/or exact length. The default value for �����}�(hX in a given
set (will include whitespace in matched characters if not listed in
the provided exclusion set - see example). Defined with string
containing all disallowed characters, and an optional minimum,
maximum, and/or exact length. The default value for �hjf hhhNhNubhj)��}�(h�``min``�h]�h�min�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjf ubh�A is
1 (a minimum value < 1 is not valid); the default values for
�����}�(h�A is
1 (a minimum value < 1 is not valid); the default values for
�hjf hhhNhNubhj)��}�(h�``max``�h]�h�max�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjf ubh� and �����}�(h� and �hjf hhhNhNubhj)��}�(h� ``exact``�h]�h�exact�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjf ubh�7 are 0, meaning no maximum or exact
length restriction.�����}�(h�7 are 0, meaning no maximum or exact
length restriction.�hjf hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn�hKhj5 hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK
hj5 hhubja )��}�(h��# define a comma-separated-value as anything that is not a ','
csv_value = CharsNotIn(',')
print(delimited_list(csv_value).parse_string("dkls,lsdkjf,s12 34,@!#,213"))�h]�h��# define a comma-separated-value as anything that is not a ','
csv_value = CharsNotIn(',')
print(delimited_list(csv_value).parse_string("dkls,lsdkjf,s12 34,@!#,213"))�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj5 hhhj� ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj5 hhubja )��}�(h�*['dkls', 'lsdkjf', 's12 34', '@!#', '213']�h]�h�*['dkls', 'lsdkjf', 's12 34', '@!#', '213']�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hK�hj5 hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�(__init__() (pyparsing.CharsNotIn method)��pyparsing.CharsNotIn.__init__�hNt�auh)h,hj5 hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn.__init__�hNubj )��}�(hhh]�(j! )��}�(h�kCharsNotIn.__init__(not_chars: str = '', min: int = 1, max: int = 0, exact: int = 0, *, notChars: str = '')�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.CharsNotIn.__init__�hNubj' )��}�(h�Vnot_chars: str = '', min: int = 1, max: int = 0, exact: int = 0, *, notChars: str = ''�h]�(j- )��}�(h�not_chars: str = ''�h]�h�not_chars: str = ''�����}�(hhhj( ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�min: int = 1�h]�h�min: int = 1�����}�(hhhj6 ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�max: int = 0�h]�h�max: int = 0�����}�(hhhjD ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�exact: int = 0�h]�h�exact: int = 0�����}�(hhhjR ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(hj@ h]�h�*�����}�(hhhj` ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�notChars: str = ''�h]�h�notChars: str = ''�����}�(hhhjm ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj# hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ j� j` �CharsNotIn.__init__�uh)j hj hhhj# hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj
hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj# hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj5 hj
hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�Combine (class in pyparsing)��pyparsing.Combine�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h��Combine(expr: pyparsing.core.ParserElement, join_string: str = '', adjacent: bool = True, *, joinString: Union[str, NoneType] = None)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj� hNubjH )��}�(h�Combine�h]�h�Combine�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj� hNubj' )��}�(h�|expr: pyparsing.core.ParserElement, join_string: str = '', adjacent: bool = True, *, joinString: Union[str, NoneType] = None�h]�(j- )��}�(h�"expr: pyparsing.core.ParserElement�h]�h�"expr: pyparsing.core.ParserElement�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�join_string: str = ''�h]�h�join_string: str = ''�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�adjacent: bool = True�h]�h�adjacent: bool = True�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(hj@ h]�h�*�����}�(hhhj$ ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�joinString: Union[str�h]�h�joinString: Union[str�����}�(hhhj1 ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj? ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j� uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�-Bases: :class:`pyparsing.core.TokenConverter`�h]�(h�Bases: �����}�(h�Bases: �hj] hhhNhNubh)��}�(h�&:class:`pyparsing.core.TokenConverter`�h]�hj)��}�(hjh h]�h�pyparsing.core.TokenConverter�����}�(hhhjj ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjf ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jt �refexplicit��h�jY h�j� h��pyparsing.core.TokenConverter�h�h�h��uh)h~h�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine�hKhj] ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjZ hhubhQ)��}�(h��Converter to concatenate all matching tokens to a single string.
By default, the matching patterns must also be contiguous in the
input string; this can be disabled by specifying
``'adjacent=False'`` in the constructor.�h]�(h��Converter to concatenate all matching tokens to a single string.
By default, the matching patterns must also be contiguous in the
input string; this can be disabled by specifying
�����}�(h��Converter to concatenate all matching tokens to a single string.
By default, the matching patterns must also be contiguous in the
input string; this can be disabled by specifying
�hj� hhhNhNubhj)��}�(h�``'adjacent=False'``�h]�h�'adjacent=False'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh� in the constructor.�����}�(h� in the constructor.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPh�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine�hKhjZ hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjZ hhubja )��}�(hX� real = Word(nums) + '.' + Word(nums)
print(real.parse_string('3.1416')) # -> ['3', '.', '1416']
# will also erroneously match the following
print(real.parse_string('3. 1416')) # -> ['3', '.', '1416']
real = Combine(Word(nums) + '.' + Word(nums))
print(real.parse_string('3.1416')) # -> ['3.1416']
# no match when there are internal spaces
print(real.parse_string('3. 1416')) # -> Exception: Expected W:(0123...)�h]�hX� real = Word(nums) + '.' + Word(nums)
print(real.parse_string('3.1416')) # -> ['3', '.', '1416']
# will also erroneously match the following
print(real.parse_string('3. 1416')) # -> ['3', '.', '1416']
real = Combine(Word(nums) + '.' + Word(nums))
print(real.parse_string('3.1416')) # -> ['3.1416']
# no match when there are internal spaces
print(real.parse_string('3. 1416')) # -> Exception: Expected W:(0123...)�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM hjZ hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�%__init__() (pyparsing.Combine method)��pyparsing.Combine.__init__�hNt�auh)h,hjZ hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine.__init__�� hNubj )��}�(hhh]�(j! )��}�(h��Combine.__init__(expr: pyparsing.core.ParserElement, join_string: str = '', adjacent: bool = True, *, joinString: Union[str, NoneType] = None)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine.__init__�hNubj' )��}�(h�|expr: pyparsing.core.ParserElement, join_string: str = '', adjacent: bool = True, *, joinString: Union[str, NoneType] = None�h]�(j- )��}�(h�"expr: pyparsing.core.ParserElement�h]�h�"expr: pyparsing.core.ParserElement�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�join_string: str = ''�h]�h�join_string: str = ''�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�adjacent: bool = True�h]�h�adjacent: bool = True�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(hj@ h]�h�*�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�joinString: Union[str�h]�h�joinString: Union[str�����}�(hhhj, ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj: ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j� j` �Combine.__init__�uh)j hj� hhhj� hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj[ hjY hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhjV hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ jt j` �uh)j hhhjZ hj� hNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�#ignore() (pyparsing.Combine method)��pyparsing.Combine.ignore�hNt�auh)h,hjZ hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine.ignore�hNubj )��}�(hhh]�(j! )��}�(h�5Combine.ignore(other) -> pyparsing.core.ParserElement�h]�(jH )��}�(h�ignore�h]�h�ignore�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Combine.ignore�hNubj' )��}�(h�other�h]�j- )��}�(h�other�h]�h�other�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubh+�desc_returns���)��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j� j` �Combine.ignore�uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h��Define expression to be ignored (e.g., comments) while doing pattern
matching; may be called repeatedly, to define multiple comment or other
ignorable patterns.�h]�h��Define expression to be ignored (e.g., comments) while doing pattern
matching; may be called repeatedly, to define multiple comment or other
ignorable patterns.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubja )��}�(h��patt = Word(alphas)[1, ...]
patt.parse_string('ablaj /* comment */ lskjd')
# -> ['ablaj']
patt.ignore(c_style_comment)
patt.parse_string('ablaj /* comment */ lskjd')
# -> ['ablaj', 'lskjd']�h]�h��patt = Word(alphas)[1, ...]
patt.parse_string('ablaj /* comment */ lskjd')
# -> ['ablaj']
patt.ignore(c_style_comment)
patt.parse_string('ablaj /* comment */ lskjd')
# -> ['ablaj', 'lskjd']�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM#hj� hhhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j j` �uh)j hhhjZ hj� hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�Dict (class in pyparsing)��pyparsing.Dict�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�>Dict(expr: pyparsing.core.ParserElement, asdict: bool = False)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj) hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj% hhh�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Dict�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj8 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj% hhhj7 hNubjH )��}�(h�Dict�h]�h�Dict�����}�(hhhjF hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj% hhhj7 hNubj' )��}�(h�8expr: pyparsing.core.ParserElement, asdict: bool = False�h]�(j- )��}�(h�"expr: pyparsing.core.ParserElement�h]�h�"expr: pyparsing.core.ParserElement�����}�(hhhjX ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hjT ubj- )��}�(h�asdict: bool = False�h]�h�asdict: bool = False�����}�(hhhjf ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hjT ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj% hhhj7 hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ hj` jH uh)j hj" hhhj7 hNubjb )��}�(hhh]�(hQ)��}�(h�-Bases: :class:`pyparsing.core.TokenConverter`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�&:class:`pyparsing.core.TokenConverter`�h]�hj)��}�(hj� h]�h�pyparsing.core.TokenConverter�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�jH h��pyparsing.core.TokenConverter�h�h�h��uh)h~h�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Dict�hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h��Converter to return a repetitive expression as a list, but also
as a dictionary. Each element can also be referenced using the first
token in the expression as its key. Useful for tabular report
scraping when the first column can be used as a item key.�h]�h��Converter to return a repetitive expression as a list, but also
as a dictionary. Each element can also be referenced using the first
token in the expression as its key. Useful for tabular report
scraping when the first column can be used as a item key.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Dict�hKhj� hhubhQ)��}�(h��The optional ``asdict`` argument when set to True will return the
parsed tokens as a Python dict instead of a pyparsing ParseResults.�h]�(h�
The optional �����}�(h�
The optional �hj� hhhNhNubhj)��}�(h�
``asdict``�h]�h�asdict�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�n argument when set to True will return the
parsed tokens as a Python dict instead of a pyparsing ParseResults.�����}�(h�n argument when set to True will return the
parsed tokens as a Python dict instead of a pyparsing ParseResults.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK hj� hhubja )��}�(hX_ data_word = Word(alphas)
label = data_word + FollowedBy(':')
text = "shape: SQUARE posn: upper left color: light blue texture: burlap"
attr_expr = (label + Suppress(':') + OneOrMore(data_word, stop_on=label).set_parse_action(' '.join))
# print attributes as plain groups
print(attr_expr[1, ...].parse_string(text).dump())
# instead of OneOrMore(expr), parse using Dict(Group(expr)[1, ...]) - Dict will auto-assign names
result = Dict(Group(attr_expr)[1, ...]).parse_string(text)
print(result.dump())
# access named fields as dict entries, or output as dict
print(result['shape'])
print(result.as_dict())�h]�hX_ data_word = Word(alphas)
label = data_word + FollowedBy(':')
text = "shape: SQUARE posn: upper left color: light blue texture: burlap"
attr_expr = (label + Suppress(':') + OneOrMore(data_word, stop_on=label).set_parse_action(' '.join))
# print attributes as plain groups
print(attr_expr[1, ...].parse_string(text).dump())
# instead of OneOrMore(expr), parse using Dict(Group(expr)[1, ...]) - Dict will auto-assign names
result = Dict(Group(attr_expr)[1, ...]).parse_string(text)
print(result.dump())
# access named fields as dict entries, or output as dict
print(result['shape'])
print(result.as_dict())�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM;hj� hhhj� ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubja )��}�(hXa ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap']
[['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']]
- color: 'light blue'
- posn: 'upper left'
- shape: 'SQUARE'
- texture: 'burlap'
SQUARE
{'color': 'light blue', 'posn': 'upper left', 'texture': 'burlap', 'shape': 'SQUARE'}�h]�hXa ['shape', 'SQUARE', 'posn', 'upper left', 'color', 'light blue', 'texture', 'burlap']
[['shape', 'SQUARE'], ['posn', 'upper left'], ['color', 'light blue'], ['texture', 'burlap']]
- color: 'light blue'
- posn: 'upper left'
- shape: 'SQUARE'
- texture: 'burlap'
SQUARE
{'color': 'light blue', 'posn': 'upper left', 'texture': 'burlap', 'shape': 'SQUARE'}�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hMNhj� hhhj� ubhQ)��}�(h�OSee more examples at :class:`ParseResults` of accessing fields by results name.�h]�(h�See more examples at �����}�(h�See more examples at �hj hhhNhNubh)��}�(h�:class:`ParseResults`�h]�hj)��}�(hj( h]�h�ParseResults�����}�(hhhj* ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj& ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j4 �refexplicit��h�j� h�jH h��ParseResults�h�h�h��uh)h~hj� hK'hj ubh�% of accessing fields by results name.�����}�(h�% of accessing fields by results name.�hj hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK'hj� hhubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�"__init__() (pyparsing.Dict method)��pyparsing.Dict.__init__�hNt�auh)h,hj� hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Dict.__init__�hNubj )��}�(hhh]�(j! )��}�(h�GDict.__init__(expr: pyparsing.core.ParserElement, asdict: bool = False)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhje hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hja hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Dict.__init__�hNubj' )��}�(h�8expr: pyparsing.core.ParserElement, asdict: bool = False�h]�(j- )��}�(h�"expr: pyparsing.core.ParserElement�h]�h�"expr: pyparsing.core.ParserElement�����}�(hhhjx ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hjt ubj- )��}�(h�asdict: bool = False�h]�h�asdict: bool = False�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hjt ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hja hhhjs hNubeh}�(h]�j[ ah!]�h#]�j[ ah%]�h']�j\ �j] � pyparsing�j_ jH j` �
Dict.__init__�uh)j hj^ hhhjs hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj] hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj^ hhhjs hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj� hj] hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj" hhhj7 hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�Each (class in pyparsing)��pyparsing.Each�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�JEach(exprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj� hNubjH )��}�(h�Each�h]�h�Each�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj� hNubj' )��}�(h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�j- )��}�(h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj hhhj� hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�.Bases: :class:`pyparsing.core.ParseExpression`�h]�(h�Bases: �����}�(h�Bases: �hj1 hhhNhNubh)��}�(h�':class:`pyparsing.core.ParseExpression`�h]�hj)��}�(hj< h]�h�pyparsing.core.ParseExpression�����}�(hhhj> ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj: ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jH �refexplicit��h�j- h�j h��pyparsing.core.ParseExpression�h�h�h��uh)h~h�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each�hKhj1 ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjX hKhj. hhubhQ)��}�(h�xRequires all given :class:`ParseExpression` s to be found, but in
any order. Expressions may be separated by whitespace.�h]�(h�Requires all given �����}�(h�Requires all given �hj_ hhhNhNubh)��}�(h�:class:`ParseExpression`�h]�hj)��}�(hjj h]�h�ParseExpression�����}�(hhhjl ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjh ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jv �refexplicit��h�j- h�j h��ParseExpression�h�h�h��uh)h~h�S/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each�hKhj_ ubh�M s to be found, but in
any order. Expressions may be separated by whitespace.�����}�(h�M s to be found, but in
any order. Expressions may be separated by whitespace.�hj_ hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj. hhubhQ)��}�(h�.May be constructed using the ``'&'`` operator.�h]�(h�May be constructed using the �����}�(h�May be constructed using the �hj� hhhNhNubhj)��}�(h�``'&'``�h]�h�'&'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�
operator.�����}�(h�
operator.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj. hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj. hhubja )��}�(hX� color = one_of("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN")
shape_type = one_of("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON")
integer = Word(nums)
shape_attr = "shape:" + shape_type("shape")
posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn")
color_attr = "color:" + color("color")
size_attr = "size:" + integer("size")
# use Each (using operator '&') to accept attributes in any order
# (shape and posn are required, color and size are optional)
shape_spec = shape_attr & posn_attr & Opt(color_attr) & Opt(size_attr)
shape_spec.run_tests('''
shape: SQUARE color: BLACK posn: 100, 120
shape: CIRCLE size: 50 color: BLUE posn: 50,80
color:GREEN size:20 shape:TRIANGLE posn:20,40
'''
)�h]�hX� color = one_of("RED ORANGE YELLOW GREEN BLUE PURPLE BLACK WHITE BROWN")
shape_type = one_of("SQUARE CIRCLE TRIANGLE STAR HEXAGON OCTAGON")
integer = Word(nums)
shape_attr = "shape:" + shape_type("shape")
posn_attr = "posn:" + Group(integer("x") + ',' + integer("y"))("posn")
color_attr = "color:" + color("color")
size_attr = "size:" + integer("size")
# use Each (using operator '&') to accept attributes in any order
# (shape and posn are required, color and size are optional)
shape_spec = shape_attr & posn_attr & Opt(color_attr) & Opt(size_attr)
shape_spec.run_tests('''
shape: SQUARE color: BLACK posn: 100, 120
shape: CIRCLE size: 50 color: BLUE posn: 50,80
color:GREEN size:20 shape:TRIANGLE posn:20,40
'''
)�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hMlhj. hhhj� ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj. hhubja )��}�(hX} shape: SQUARE color: BLACK posn: 100, 120
['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']]
- color: BLACK
- posn: ['100', ',', '120']
- x: 100
- y: 120
- shape: SQUARE
shape: CIRCLE size: 50 color: BLUE posn: 50,80
['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', 'posn:', ['50', ',', '80']]
- color: BLUE
- posn: ['50', ',', '80']
- x: 50
- y: 80
- shape: CIRCLE
- size: 50
color: GREEN size: 20 shape: TRIANGLE posn: 20,40
['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', 'posn:', ['20', ',', '40']]
- color: GREEN
- posn: ['20', ',', '40']
- x: 20
- y: 40
- shape: TRIANGLE
- size: 20�h]�hX} shape: SQUARE color: BLACK posn: 100, 120
['shape:', 'SQUARE', 'color:', 'BLACK', 'posn:', ['100', ',', '120']]
- color: BLACK
- posn: ['100', ',', '120']
- x: 100
- y: 120
- shape: SQUARE
shape: CIRCLE size: 50 color: BLUE posn: 50,80
['shape:', 'CIRCLE', 'size:', '50', 'color:', 'BLUE', 'posn:', ['50', ',', '80']]
- color: BLUE
- posn: ['50', ',', '80']
- x: 50
- y: 80
- shape: CIRCLE
- size: 50
color: GREEN size: 20 shape: TRIANGLE posn: 20,40
['color:', 'GREEN', 'size:', '20', 'shape:', 'TRIANGLE', 'posn:', ['20', ',', '40']]
- color: GREEN
- posn: ['20', ',', '40']
- x: 20
- y: 40
- shape: TRIANGLE
- size: 20�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj. hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�"__init__() (pyparsing.Each method)��pyparsing.Each.__init__�hNt�auh)h,hj. hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each.__init__�hNubj )��}�(hhh]�(j! )��}�(h�SEach.__init__(exprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�\/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Each.__init__�hNubj' )��}�(h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�j- )��}�(h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�h]�h�Dexprs: Iterable[pyparsing.core.ParserElement], savelist: bool = True�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj hhhj hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j j` �
Each.__init__�uh)j hj� hhhj hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj9 hj7 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj4 hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ jR j` �uh)j hhhj. hj� hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j` j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�Empty (class in pyparsing)��pyparsing.Empty�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�Empty()�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhjv hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjr hhh�T/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Empty�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hjr hhhj� hNubjH )��}�(h�Empty�h]�h�Empty�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjr hhhj� hNubeh}�(h]�jm ah!]�h#]�jm ah%]�h']�j\ �j] � pyparsing�j_ hj` j� uh)j hjo hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h�$Bases: :class:`pyparsing.core.Token`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�:class:`pyparsing.core.Token`�h]�hj)��}�(hj� h]�h�pyparsing.core.Token�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j� h��pyparsing.core.Token�h�h�h��uh)h~h�T/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Empty�hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(h�"An empty token, will always match.�h]�h�"An empty token, will always match.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPh�T/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Empty�hKhj� hhubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�#__init__() (pyparsing.Empty method)��pyparsing.Empty.__init__�hNt�auh)h,hj� hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Empty.__init__�hNubj )��}�(hhh]�(j! )��}�(h�Empty.__init__()�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Empty.__init__�hNubj' )��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j� j` �Empty.__init__�uh)j hj� hhhj hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj# hj! hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j< j` �uh)j hhhj� hj� hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hjo hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ jJ j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�FollowedBy (class in pyparsing)��pyparsing.FollowedBy�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�:FollowedBy(expr: Union[pyparsing.core.ParserElement, str])�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj` hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj\ hhh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhjo hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj\ hhhjn hNubjH )��}�(h�
FollowedBy�h]�h�
FollowedBy�����}�(hhhj} hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj\ hhhjn hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� hhhjn hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj\ hhhjn hNubeh}�(h]�jW ah!]�h#]�jW ah%]�h']�j\ �j] � pyparsing�j_ hj` j uh)j hjY hhhjn hNubjb )��}�(hhh]�(hQ)��}�(h�2Bases: :class:`pyparsing.core.ParseElementEnhance`�h]�(h�Bases: �����}�(h�Bases: �hj� hhhNhNubh)��}�(h�+:class:`pyparsing.core.ParseElementEnhance`�h]�hj)��}�(hj� h]�h�"pyparsing.core.ParseElementEnhance�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j h��"pyparsing.core.ParseElementEnhance�h�h�h��uh)h~h�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy�hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubhQ)��}�(hXt Lookahead matching of the given parse expression.
``FollowedBy`` does *not* advance the parsing position within
the input string, it only verifies that the specified parse
expression matches at the current position. ``FollowedBy``
always returns a null token list. If any results names are defined
in the lookahead expression, those *will* be returned for access by
name.�h]�(h�2Lookahead matching of the given parse expression.
�����}�(h�2Lookahead matching of the given parse expression.
�hj� hhhNhNubhj)��}�(h�``FollowedBy``�h]�h�
FollowedBy�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh� does �����}�(h� does �hj� hhhNhNubjp )��}�(h�*not*�h]�h�not�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)jo hj� ubh�� advance the parsing position within
the input string, it only verifies that the specified parse
expression matches at the current position. �����}�(h�� advance the parsing position within
the input string, it only verifies that the specified parse
expression matches at the current position. �hj� hhhNhNubhj)��}�(h�``FollowedBy``�h]�h�
FollowedBy�����}�(hhhj
ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�g
always returns a null token list. If any results names are defined
in the lookahead expression, those �����}�(h�g
always returns a null token list. If any results names are defined
in the lookahead expression, those �hj� hhhNhNubjp )��}�(h�*will*�h]�h�will�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�uh)jo hj� ubh� be returned for access by
name.�����}�(h� be returned for access by
name.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPh�Y/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy�hKhj� hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hj7 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj6 hK hj� hhubja )��}�(hX@ # use FollowedBy to match a label only if it is followed by a ':'
data_word = Word(alphas)
label = data_word + FollowedBy(':')
attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stop_on=label).set_parse_action(' '.join))
attr_expr[1, ...].parse_string("shape: SQUARE color: BLACK posn: upper left").pprint()�h]�hX@ # use FollowedBy to match a label only if it is followed by a ':'
data_word = Word(alphas)
label = data_word + FollowedBy(':')
attr_expr = Group(label + Suppress(':') + OneOrMore(data_word, stop_on=label).set_parse_action(' '.join))
attr_expr[1, ...].parse_string("shape: SQUARE color: BLACK posn: upper left").pprint()�����}�(hhhjF ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj� hhhj6 ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hjT hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj6 hKhj� hhubja )��}�(h�A[['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']]�h]�h�A[['shape', 'SQUARE'], ['color', 'BLACK'], ['posn', 'upper left']]�����}�(hhhjc ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj� hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy.__init__�ubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�(__init__() (pyparsing.FollowedBy method)��pyparsing.FollowedBy.__init__�hNt�auh)h,hj� hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy.__init__�hNubj )��}�(hhh]�(j! )��}�(h�CFollowedBy.__init__(expr: Union[pyparsing.core.ParserElement, str])�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�b/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.FollowedBy.__init__�hNubj' )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�j- )��}�(h�.expr: Union[pyparsing.core.ParserElement, str]�h]�h�.expr: Union[pyparsing.core.ParserElement, str]�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� hhhj� hNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubeh}�(h]�j~ ah!]�h#]�j~ ah%]�h']�j\ �j] � pyparsing�j_ j j` �FollowedBy.__init__�uh)j hj� hhhj� hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hj� hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj� hj� hNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hjY hhhjn hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �class�j_ j� j` �uh)j hhhj� hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�Forward (class in pyparsing)��pyparsing.Forward�hNt�auh)h,hj� hhhNhNubj )��}�(hhh]�(j! )��}�(h�IForward(other: Union[pyparsing.core.ParserElement, str, NoneType] = None)�h]�(j' )��}�(h�class �h]�h�class �����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhh�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward�hNubj8 )��}�(h�
pyparsing.�h]�h�
pyparsing.�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j7 hj� hhhj hNubjH )��}�(h�Forward�h]�h�Forward�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhhj hNubj' )��}�(h�@other: Union[pyparsing.core.ParserElement, str, NoneType] = None�h]�(j- )��}�(h�)other: Union[pyparsing.core.ParserElement�h]�h�)other: Union[pyparsing.core.ParserElement�����}�(hhhj( ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�str�h]�h�str�����}�(hhhj6 ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhjD ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj$ ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ hj` j uh)j hj� hhhj hNubjb )��}�(hhh]�(hQ)��}�(h�2Bases: :class:`pyparsing.core.ParseElementEnhance`�h]�(h�Bases: �����}�(h�Bases: �hjb hhhNhNubh)��}�(h�+:class:`pyparsing.core.ParseElementEnhance`�h]�hj)��}�(hjm h]�h�"pyparsing.core.ParseElementEnhance�����}�(hhhjo ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjk ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jy �refexplicit��h�j^ h�j h��"pyparsing.core.ParseElementEnhance�h�h�h��uh)h~h�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward�hKhjb ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj_ hhubhQ)��}�(h��Forward declaration of an expression to be defined later -
used for recursive grammars, such as algebraic infix notation.
When the expression is known, it is assigned to the ``Forward``
variable using the ``'<<'`` operator.�h]�(h��Forward declaration of an expression to be defined later -
used for recursive grammars, such as algebraic infix notation.
When the expression is known, it is assigned to the �����}�(h��Forward declaration of an expression to be defined later -
used for recursive grammars, such as algebraic infix notation.
When the expression is known, it is assigned to the �hj� hhhNhNubhj)��}�(h�``Forward``�h]�h�Forward�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�
variable using the �����}�(h�
variable using the �hj� hhhNhNubhj)��}�(h�``'<<'``�h]�h�'<<'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�
operator.�����}�(h�
operator.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPh�V/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward�hKhj_ hhubhQ)��}�(h�VNote: take care when assigning to ``Forward`` not to overlook
precedence of operators.�h]�(h�"Note: take care when assigning to �����}�(h�"Note: take care when assigning to �hj� hhhNhNubhj)��}�(h�``Forward``�h]�h�Forward�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�) not to overlook
precedence of operators.�����}�(h�) not to overlook
precedence of operators.�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj_ hhubhQ)��}�(h�ESpecifically, ``'|'`` has a lower precedence than ``'<<'``, so that::�h]�(h�Specifically, �����}�(h�Specifically, �hj� hhhNhNubhj)��}�(h�``'|'``�h]�h�'|'�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh� has a lower precedence than �����}�(h� has a lower precedence than �hj� hhhNhNubhj)��}�(h�``'<<'``�h]�h�'<<'�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�
, so that:�����}�(h�
, so that:�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK hj_ hhubja )��}�(h�fwd_expr << a | b | c�h]�h�fwd_expr << a | b | c�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj_ hhhj� ubhQ)��}�(h�will actually be evaluated as::�h]�h�will actually be evaluated as:�����}�(h�will actually be evaluated as:�hj+ hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hK
hj_ hhubja )��}�(h�(fwd_expr << a) | b | c�h]�h�(fwd_expr << a) | b | c�����}�(hhhj: ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj_ hhhj� ubhQ)��}�(h��thereby leaving b and c out as parseable alternatives. It is recommended that you
explicitly group the values inserted into the ``Forward``::�h]�(h��thereby leaving b and c out as parseable alternatives. It is recommended that you
explicitly group the values inserted into the �����}�(h��thereby leaving b and c out as parseable alternatives. It is recommended that you
explicitly group the values inserted into the �hjH hhhNhNubhj)��}�(h�``Forward``�h]�h�Forward�����}�(hhhjQ ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjH ubh�:�����}�(h�:�hjH hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj_ hhubja )��}�(h�fwd_expr << (a | b | c)�h]�h�fwd_expr << (a | b | c)�����}�(hhhjj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hM�hj_ hhhj� ubhQ)��}�(h�IConverting to use the ``'<<='`` operator instead will avoid this problem.�h]�(h�Converting to use the �����}�(h�Converting to use the �hjx hhhNhNubhj)��}�(h� ``'<<='``�h]�h�'<<='�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihjx ubh�* operator instead will avoid this problem.�����}�(h�* operator instead will avoid this problem.�hjx hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj_ hhubhQ)��}�(h�`See :class:`ParseResults.pprint` for an example of a recursive
parser created using ``Forward``.�h]�(h�See �����}�(h�See �hj� hhhNhNubh)��}�(h�:class:`ParseResults.pprint`�h]�hj)��}�(hj� h]�h�ParseResults.pprint�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j^ h�j h��ParseResults.pprint�h�h�h��uh)h~hj� hKhj� ubh�4 for an example of a recursive
parser created using �����}�(h�4 for an example of a recursive
parser created using �hj� hhhNhNubhj)��}�(h�``Forward``�h]�h�Forward�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�.�����}�(hj� hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj_ hhubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�%__init__() (pyparsing.Forward method)��pyparsing.Forward.__init__�hNt�auh)h,hj_ hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.__init__�hNubj )��}�(hhh]�(j! )��}�(h�RForward.__init__(other: Union[pyparsing.core.ParserElement, str, NoneType] = None)�h]�(jH )��}�(h�__init__�h]�h�__init__�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.__init__�hNubj' )��}�(h�@other: Union[pyparsing.core.ParserElement, str, NoneType] = None�h]�(j- )��}�(h�)other: Union[pyparsing.core.ParserElement�h]�h�)other: Union[pyparsing.core.ParserElement�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�str�h]�h�str�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubj- )��}�(h�NoneType] = None�h]�h�NoneType] = None�����}�(hhhj# ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubeh}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.__init__�uh)j hj� hhhj hNubjb )��}�(hhh]�hQ)��}�(h�>Initialize self. See help(type(self)) for accurate signature.�h]�h�>Initialize self. See help(type(self)) for accurate signature.�����}�(hjD hjB hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj� hKhj? hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j] j` �uh)j hhhj_ hj� hNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�#__or__() (pyparsing.Forward method)��pyparsing.Forward.__or__�hNt�auh)h,hj_ hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.__or__�hNubj )��}�(hhh]�(j! )��}�(h�Forward.__or__(other)�h]�(jH )��}�(h�__or__�h]�h�__or__�����}�(hhhjt hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hjp hhh�]/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.__or__�hNubj' )��}�(h�other�h]�j- )��}�(h�other�h]�h�other�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hjp hhhj� hNubeh}�(h]�jj ah!]�h#]�jj ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.__or__�uh)j hjm hhhj� hNubjb )��}�(hhh]�hQ)��}�(h�>Implementation of ``|`` operator - returns :class:`MatchFirst`�h]�(h�Implementation of �����}�(h�Implementation of �hj� hhhNhNubhj)��}�(h�``|``�h]�h�|�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh� operator - returns �����}�(h� operator - returns �hj� hhhNhNubh)��}�(h�:class:`MatchFirst`�h]�hj)��}�(hj� h]�h�
MatchFirst�����}�(hhhj� ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj� ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j� �refexplicit��h�j� h�j h��
MatchFirst�h�h�h��uh)h~hjl hKhj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjl hKhj� hhubah}�(h]�h!]�h#]�h%]�h']�uh)ja hjm hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj_ hjl hNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�!copy() (pyparsing.Forward method)��pyparsing.Forward.copy�hNt�auh)h,hj_ hhh�[/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.copy�hNubj )��}�(hhh]�(j! )��}�(h�.Forward.copy() -> pyparsing.core.ParserElement�h]�(jH )��}�(h�copy�h]�h�copy�����}�(hhhj
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�[/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.copy�hNubj' )��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubj� )��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj" hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj hhhj hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.copy�uh)j hj hhhj hNubjb )��}�(hhh]�(hQ)��}�(h��Make a copy of this :class:`ParserElement`. Useful for defining
different parse actions for the same parsing pattern, using copies of
the original parse element.�h]�(h�Make a copy of this �����}�(h�Make a copy of this �hj; hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hjF h]�h�
ParserElement�����}�(hhhjH ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjD ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jR �refexplicit��h�j6 h�j h��
ParserElement�h�h�h��uh)h~hj hKhj; ubh�x. Useful for defining
different parse actions for the same parsing pattern, using copies of
the original parse element.�����}�(h�x. Useful for defining
different parse actions for the same parsing pattern, using copies of
the original parse element.�hj; hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj hKhj8 hhubhQ)��}�(h� Example::�h]�h�Example:�����}�(h�Example:�hjm hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj hKhj8 hhubja )��}�(hXH integer = Word(nums).set_parse_action(lambda toks: int(toks[0]))
integerK = integer.copy().add_parse_action(lambda toks: toks[0] * 1024) + Suppress("K")
integerM = integer.copy().add_parse_action(lambda toks: toks[0] * 1024 * 1024) + Suppress("M")
print((integerK | integerM | integer)[1, ...].parse_string("5K 100 640K 256M"))�h]�hXH integer = Word(nums).set_parse_action(lambda toks: int(toks[0]))
integerK = integer.copy().add_parse_action(lambda toks: toks[0] * 1024) + Suppress("K")
integerM = integer.copy().add_parse_action(lambda toks: toks[0] * 1024 * 1024) + Suppress("M")
print((integerK | integerM | integer)[1, ...].parse_string("5K 100 640K 256M"))�����}�(hhhj| ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hMhj8 hhhj ubhQ)��}�(h�prints::�h]�h�prints:�����}�(h�prints:�hj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hPhj hK
hj8 hhubja )��}�(h�[5120, 100, 655360, 268435456]�h]�h�[5120, 100, 655360, 268435456]�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hMhj8 hhhj ubhQ)��}�(h�7Equivalent form of ``expr.copy()`` is just ``expr()``::�h]�(h�Equivalent form of �����}�(h�Equivalent form of �hj� hhhNhNubhj)��}�(h�``expr.copy()``�h]�h�expr.copy()�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh� is just �����}�(h� is just �hj� hhhNhNubhj)��}�(h�
``expr()``�h]�h�expr()�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� ubh�:�����}�(hjc hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj hKhj8 hhubja )��}�(h�YintegerM = integer().add_parse_action(lambda toks: toks[0] * 1024 * 1024) + Suppress("M")�h]�h�YintegerM = integer().add_parse_action(lambda toks: toks[0] * 1024 * 1024) + Suppress("M")�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j` hMhj8 hhhj ubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj_ hj hNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�-ignoreWhitespace() (pyparsing.Forward method)��"pyparsing.Forward.ignoreWhitespace�hNt�auh)h,hj_ hhhNhNubj )��}�(hhh]�(j! )��}�(h�PForward.ignoreWhitespace(recursive: bool = True) -> pyparsing.core.ParserElement�h]�(jH )��}�(h�ignoreWhitespace�h]�h�ignoreWhitespace�����}�(hhhj hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.ignoreWhitespace�hNubj' )��}�(h�recursive: bool = True�h]�j- )��}�(h�recursive: bool = True�h]�h�recursive: bool = True�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubj� )��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj3 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj hhhj hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.ignoreWhitespace�uh)j hj hhhj hNubjb )��}�(hhh]�(hQ)��}�(h�rEnables the skipping of whitespace before matching the characters in the
:class:`ParserElement`'s defined pattern.�h]�(h�IEnables the skipping of whitespace before matching the characters in the
�����}�(h�IEnables the skipping of whitespace before matching the characters in the
�hjL hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hjW h]�h�
ParserElement�����}�(hhhjY ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjU ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jc �refexplicit��h�jG h�j h��
ParserElement�h�h�h��uh)h~h�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.ignoreWhitespace�hKhjL ubh�’s defined pattern.�����}�(h�'s defined pattern.�hjL hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjs hKhjI hhubh �
field_list���)��}�(hhh]�h �field���)��}�(hhh]�(h �
field_name���)��}�(h�
Parameters�h]�h�
Parameters�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� hj hK ubh �
field_body���)��}�(hhh]�hQ)��}�(h�^recursive -- If True (the default), also enable whitespace skipping in child elements (if any)�h]�(h+�literal_strong���)��}�(h� recursive�h]�h� recursive�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']��refspecific��uh)j� hj� ubh� – �����}�(hhhj� ubh�If �����}�(h�If �hj� hhhNhNubhj)��}�(h�``True``�h]�h�True�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� hhhNhNubh�J (the default), also enable whitespace skipping in child elements (if any)�����}�(h�J (the default), also enable whitespace skipping in child elements (if any)�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j hjI hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj_ hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�.ignore_whitespace() (pyparsing.Forward method)��#pyparsing.Forward.ignore_whitespace�hNt�auh)h,hj_ hhhNhNubj )��}�(hhh]�(j! )��}�(h�QForward.ignore_whitespace(recursive: bool = True) -> pyparsing.core.ParserElement�h]�(jH )��}�(h�ignore_whitespace�h]�h�ignore_whitespace�����}�(hhhj
hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj hhh�h/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.ignore_whitespace�hNubj' )��}�(h�recursive: bool = True�h]�j- )��}�(h�recursive: bool = True�h]�h�recursive: bool = True�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj hhhj hNubj� )��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj1 hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj hhhj hNubeh}�(h]�j ah!]�h#]�j ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.ignore_whitespace�uh)j hj hhhj hNubjb )��}�(hhh]�(hQ)��}�(h�rEnables the skipping of whitespace before matching the characters in the
:class:`ParserElement`'s defined pattern.�h]�(h�IEnables the skipping of whitespace before matching the characters in the
�����}�(h�IEnables the skipping of whitespace before matching the characters in the
�hjJ hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hjU h]�h�
ParserElement�����}�(hhhjW ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjS ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�ja �refexplicit��h�jE h�j h��
ParserElement�h�h�h��uh)h~h�h/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.ignore_whitespace�hKhjJ ubh�’s defined pattern.�����}�(h�'s defined pattern.�hjJ hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjq hKhjG hhubj� )��}�(hhh]�j� )��}�(hhh]�(j� )��}�(h�
Parameters�h]�h�
Parameters�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� hj hK ubj� )��}�(hhh]�hQ)��}�(h�^recursive -- If True (the default), also enable whitespace skipping in child elements (if any)�h]�(j� )��}�(h� recursive�h]�h� recursive�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�j� �uh)j� hj� ubh� – �����}�(hhhj� ubh�If �����}�(h�If �hj� hhhNhNubhj)��}�(h�``True``�h]�h�True�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�uh)hihj� hhhNhNubh�J (the default), also enable whitespace skipping in child elements (if any)�����}�(h�J (the default), also enable whitespace skipping in child elements (if any)�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hj� ubeh}�(h]�h!]�h#]�h%]�h']�uh)j� hj} ubah}�(h]�h!]�h#]�h%]�h']�uh)j hjG hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj_ hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�,leaveWhitespace() (pyparsing.Forward method)��!pyparsing.Forward.leaveWhitespace�hNt�auh)h,hj_ hhhNhNubj )��}�(hhh]�(j! )��}�(h�OForward.leaveWhitespace(recursive: bool = True) -> pyparsing.core.ParserElement�h]�(jH )��}�(h�leaveWhitespace�h]�h�leaveWhitespace�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�f/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.leaveWhitespace�hNubj' )��}�(h�recursive: bool = True�h]�j- )��}�(h�recursive: bool = True�h]�h�recursive: bool = True�����}�(hhhj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj hNubj� )��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj$ hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj� hhhj hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.leaveWhitespace�uh)j hj� hhhj hNubjb )��}�(hhh]�(hQ)��}�(h��Disables the skipping of whitespace before matching the characters in the
:class:`ParserElement`'s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�h]�(h�JDisables the skipping of whitespace before matching the characters in the
�����}�(h�JDisables the skipping of whitespace before matching the characters in the
�hj= hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hjH h]�h�
ParserElement�����}�(hhhjJ ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihjF ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�jT �refexplicit��h�j8 h�j h��
ParserElement�h�h�h��uh)h~h�f/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.leaveWhitespace�hKhj= ubh��’s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�����}�(h��'s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�hj= hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjd hKhj: hhubj� )��}�(hhh]�j� )��}�(hhh]�(j� )��}�(h�
Parameters�h]�h�
Parameters�����}�(hhhjv ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjs hj hK ubj� )��}�(hhh]�hQ)��}�(h�_recursive -- If true (the default), also disable whitespace skipping in child elements (if any)�h]�(j� )��}�(h� recursive�h]�h� recursive�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�j� �uh)j� hj� ubh� – �����}�(hhhj� ubh�RIf true (the default), also disable whitespace skipping in child elements (if any)�����}�(h�RIf true (the default), also disable whitespace skipping in child elements (if any)�hj� hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhj� ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjs ubeh}�(h]�h!]�h#]�h%]�h']�uh)j� hjp ubah}�(h]�h!]�h#]�h%]�h']�uh)j hj: hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j� j` �uh)j hhhj_ hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�-leave_whitespace() (pyparsing.Forward method)��"pyparsing.Forward.leave_whitespace�hNt�auh)h,hj_ hhhNhNubj )��}�(hhh]�(j! )��}�(h�PForward.leave_whitespace(recursive: bool = True) -> pyparsing.core.ParserElement�h]�(jH )��}�(h�leave_whitespace�h]�h�leave_whitespace�����}�(hhhj� hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj� hhh�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.leave_whitespace�hNubj' )��}�(h�recursive: bool = True�h]�j- )��}�(h�recursive: bool = True�h]�h�recursive: bool = True�����}�(hhhj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj� ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj� hhhj� hNubj� )��}�(h�pyparsing.core.ParserElement�h]�h�pyparsing.core.ParserElement�����}�(hhhj! hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj� hhhj� hNubeh}�(h]�j� ah!]�h#]�j� ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.leave_whitespace�uh)j hj� hhhj� hNubjb )��}�(hhh]�(hQ)��}�(h��Disables the skipping of whitespace before matching the characters in the
:class:`ParserElement`'s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�h]�(h�JDisables the skipping of whitespace before matching the characters in the
�����}�(h�JDisables the skipping of whitespace before matching the characters in the
�hj! hhhNhNubh)��}�(h�:class:`ParserElement`�h]�hj)��}�(hj(! h]�h�
ParserElement�����}�(hhhj*! ubah}�(h]�h!]�(h��py��py-class�eh#]�h%]�h']�uh)hihj&! ubah}�(h]�h!]�h#]�h%]�h']��reftype��class�� refdomain�j4! �refexplicit��h�j! h�j h��
ParserElement�h�h�h��uh)h~h�g/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.leave_whitespace�hKhj! ubh��’s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�����}�(h��'s defined pattern. This is normally only used internally by
the pyparsing module, but may be needed in some whitespace-sensitive grammars.�hj! hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjD! hKhj! hhubj� )��}�(hhh]�j� )��}�(hhh]�(j� )��}�(h�
Parameters�h]�h�
Parameters�����}�(hhhjV! ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjS! hj� hK ubj� )��}�(hhh]�hQ)��}�(h�_recursive -- If true (the default), also disable whitespace skipping in child elements (if any)�h]�(j� )��}�(h� recursive�h]�h� recursive�����}�(hhhjk! ubah}�(h]�h!]�h#]�h%]�h']�j� �uh)j� hjg! ubh� – �����}�(hhhjg! ubh�RIf true (the default), also disable whitespace skipping in child elements (if any)�����}�(h�RIf true (the default), also disable whitespace skipping in child elements (if any)�hjg! hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)hPhjd! ubah}�(h]�h!]�h#]�h%]�h']�uh)j� hjS! ubeh}�(h]�h!]�h#]�h%]�h']�uh)j� hjP! ubah}�(h]�h!]�h#]�h%]�h']�uh)j hj! hhhNhNubeh}�(h]�h!]�h#]�h%]�h']�uh)ja hj� hhhj� hNubeh}�(h]�h!]�h#]�h%]�h']�j[ �py�j] �method�j_ j�! j` �uh)j hhhj_ hNhNubh-)��}�(hhh]�h}�(h]�h!]�h#]�h%]�h']��entries�]�(h9�%validate() (pyparsing.Forward method)��pyparsing.Forward.validate�hNt�auh)h,hj_ hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.validate�hNubj )��}�(hhh]�(j! )��}�(h�,Forward.validate(validateTrace=None) -> None�h]�(jH )��}�(h�validate�h]�h�validate�����}�(hhhj�! hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)jG hj�! hhh�_/builddir/build/BUILD/pyparsing-3.0.9/pyparsing/core.py:docstring of pyparsing.Forward.validate�hNubj' )��}�(h�validateTrace=None�h]�j- )��}�(h�validateTrace=None�h]�h�validateTrace=None�����}�(hhhj�! ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j, hj�! ubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j& hj�! hhhj�! hNubj� )��}�(h�None�h]�h�None�����}�(hhhj�! hhhNhNubah}�(h]�h!]�h#]�h%]�h']�jp jq uh)j� hj�! hhhj�! hNubeh}�(h]�j�! ah!]�h#]�j�! ah%]�h']�j\ �j] � pyparsing�j_ j j` �Forward.validate�uh)j hj�! hhhj�! hNubjb )��}�(hhh]�hQ)��}�(h�XCheck defined expressions for valid structure, check for infinite recursive definitions.�h]�h�XCheck defined expressions for valid structure, check for infinite recursive definitions.�����}�(hj "