All Samples(75) | Call(0) | Derive(0) | Import(75)
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 "<salutation>, <addressee>!")::
from pyparsing import Word, alphas(more...)
src/m/e/mekk.feeds-1.4.3/src/mekk/feeds/orgfile/org_parse.py mekk.feeds(Download)
""" import pyparsing as pyp class OrgParser(object):
src/z/s/zs.bibtex-0.1.0/src/zs/bibtex/parser.py zs.bibtex(Download)
import re import codecs import pyparsing as pp from ..bibtex import structures, exceptions
src/i/v/ivy-HEAD/ivy/newick.py ivy(Download)
def parse_ampersand_comment(s):
import pyparsing
pyparsing.ParserElement.enablePackrat()
from pyparsing import Word, Literal, QuotedString, CaselessKeyword, \
OneOrMore, Group, Optional, Suppress, Regex, Dict
def nexus_iter(infile):
import pyparsing
pyparsing.ParserElement.enablePackrat()
from pyparsing import Word, Literal, QuotedString, CaselessKeyword, \
OneOrMore, Group, Optional, Suppress, Regex, Dict
src/c/o/compactxml-2.1.0/compactxml/parser.py compactxml(Download)
#!/usr/bin/python -tt from __future__ import absolute_import import pyparsing
src/c/o/compactxml-2.1.0/compactxml/grammar.py compactxml(Download)
import re import pyparsing from . import pyparsingaddons as addons
src/c/o/compactxml-2.1.0/compactxml/grammar-with-debug.py compactxml(Download)
import re import pyparsing from . import pyparsingaddons as addons
src/c/o/compactxml-2.1.0/compactxml/expression.py compactxml(Download)
from lxml import etree import pyparsing from .error import ExpandError
src/c/o/compactxml-2.1.0/compactxml/expand.py compactxml(Download)
from lxml import etree import pyparsing from .namespace import Namespaces, UndefinedPrefix
src/c/o/compactxml-2.1.0/compactxml/error.py compactxml(Download)
from lxml import etree import pyparsing from . import pyparsingaddons as addons
src/s/e/seishub.core-1.2.1/seishub/core/xmldb/xpath.py seishub.core(Download)
from seishub.core.exceptions import InvalidParameterError from seishub.core.xmldb.interfaces import IXPathQuery import pyparsing as pp
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next