From 5665fc2582bf23e934d7228b514ec65a871278e2 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Sun, 7 Aug 2016 04:42:42 +0000 Subject: Reformat Word docstring to include links to helper strings git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@394 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b --- src/pyparsing.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pyparsing.py b/src/pyparsing.py index a97823a..d2b1172 100644 --- a/src/pyparsing.py +++ b/src/pyparsing.py @@ -58,7 +58,7 @@ The pyparsing module handles some of the problems that are typically vexing when """ __version__ = "2.1.6" -__versionTime__ = "06 Aug 2016 22:22 UTC" +__versionTime__ = "07 Aug 2016 04:42 UTC" __author__ = "Paul McGuire " import string @@ -2448,15 +2448,16 @@ class Word(Token): L{srange} is useful for defining custom character set strings for defining C{Word} expressions, using range notation from regular expression character sets. + pyparsing includes helper strings for building Words: + - L{alphas} + - L{nums} + - L{alphanums} + - L{hexnums} + - L{alphas8bit} (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.) + - L{punc8bit} (non-alphabetic characters in ASCII range 128-255 - currency, symbols, superscripts, diacriticals, etc.) + - L{printables} (any non-whitespace character) + Example:: - # pyparsing includes helper strings for building Words: - # alphas - # nums - # alphanums - # hexnums - # alphas8bit (alphabetic characters in ASCII range 128-255 - accented, tilded, umlauted, etc.) - # printables (any non-whitespace character) - # a word composed of digits integer = Word(nums) # equivalent to Word("0123456789") or Word(srange("0-9")) -- cgit v1.2.1