Did I find the right examples for you? yes no

All Samples(158)  |  Call(0)  |  Derive(0)  |  Import(158)
pyparsing module - Classes and methods to define and execute parsing grammars

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.

Here is a program to parse "Hello, World!" (or any greeting of the form C{"<salutation>, <addressee>!"})::

    from pyparsing import Word, alphas(more...)

src/n/e/networkx-HEAD/examples/graph/football.py   networkx(Download)
 
try:
    import pyparsing
except ImportError as e:
    raise ImportError(str(e)+". Check http://pyparsing.wikispaces.com/")

src/f/u/func-shell-1.4/examples/fsh_query.py   func-shell(Download)
# make sure we have a query we can handle.
 
import pyparsing as pp
import re
import os, sys

src/f/u/func-shell-HEAD/examples/fsh_query.py   func-shell(Download)
# make sure we have a query we can handle.
 
import pyparsing as pp
import re
import os, sys

src/d/c/dcpu16py-HEAD/asm_pyparsing.py   dcpu16py(Download)
import sys
 
import pyparsing as P
from collections import defaultdict
 
    log.debug("Exception raised:" + P._ustr(exc))
 
P._defaultStartDebugAction = _defaultStartDebugAction
P._defaultSuccessDebugAction = _defaultSuccessDebugAction
P._defaultExceptionDebugAction = _defaultExceptionDebugAction

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/lib/capa/capa/inputtypes.py   MHST2013-14(Download)
import shlex  # for splitting quoted strings
import sys
import pyparsing
 
from .registry import TagRegistry

src/m/a/matplotlib-1.3.1/setupext.py   matplotlib(Download)
    def is_ok(self):
        # pyparsing 2.0.0 bug, but it may be patched in distributions
        try:
            import pyparsing
            f = pyparsing.Forward()
    def check(self):
        try:
            import pyparsing
        except ImportError:
            return (

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/module_render.py   MHST2013-14(Download)
from django.views.decorators.csrf import csrf_exempt
 
import pyparsing
from requests.auth import HTTPBasicAuth
from statsd import statsd

src/m/u/MUSS-HEAD/muss/commands/world.py   MUSS(Download)
# Basic interactions in the world.
 
import pyparsing as pyp
import importlib
from muss import db, parser, equipment, utils

src/m/u/MUSS-HEAD/muss/commands/social.py   MUSS(Download)
# Commands for communicating with other players.
 
import pyparsing as pyp
 
from muss import db, handler, parser, utils, locks

src/m/u/MUSS-HEAD/muss/commands/help.py   MUSS(Download)
# Commands relating to the in-game documentation.
 
import pyparsing
 
from muss import handler, parser, utils

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next