[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8f0c266 58/60: Add doc for parsec-peek(-p)
From: |
Junpeng Qiu |
Subject: |
[elpa] master 8f0c266 58/60: Add doc for parsec-peek(-p) |
Date: |
Tue, 25 Oct 2016 17:45:17 +0000 (UTC) |
branch: master
commit 8f0c266d8b9b0ee5fcf9b80c518644b2849ff3b3
Author: Junpeng Qiu <address@hidden>
Commit: Junpeng Qiu <address@hidden>
Add doc for parsec-peek(-p)
---
README.org | 7 +++++++
parsec.el | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/README.org b/README.org
index 6738fce..53d08db 100644
--- a/README.org
+++ b/README.org
@@ -34,6 +34,10 @@ So we can
these functions and macros and try them to see the results! They are really
easy to learn and use!
+ The *Usage* column for each function/combinator in the following tables is
+ much simplified. Check the docstring of the function/combinator to see the
+ full description.
+
** Basic Parsing Functions
These parsing functions are used as the basic building block for a parser.
By
default, their return value is a *string*.
@@ -71,6 +75,9 @@ So we can
|---------------------------+------------------+--------------------------------------------------------------|
| parsec-or | choice | try the parsers until one
succeeds |
| parsec-try | try | try parser and consume no
input when an error occurs |
+ | parsec-lookahead | lookahead | try parser and consume no
input when successful |
+ | parsec-peek | try && lookahead | try parser without
comsuming any input |
+ | parsec-peek-p | try && lookahead | same as parsec-peek except
the return value for failure |
| parsec-with-error-message | <?> (similar) | use the new error message
when an error occurs |
| parsec-many | many | apply the parser zero or
more times |
| parsec-many1 | many1 | apply the parser one or
more times |
diff --git a/parsec.el b/parsec.el
index 43e3727..468ecda 100644
--- a/parsec.el
+++ b/parsec.el
@@ -95,6 +95,10 @@
;; at the docstrings of these functions and macros and try them to see
;; the results! They are really easy to learn and use!
+;; The *Usage* column for each function/combinator in the following
+;; tables is much simplified. Check the docstring of the
+;; function/combinator to see the full description.
+
;; 2.1 Basic Parsing Functions
;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -140,6 +144,9 @@
;;
-----------------------------------------------------------------------------------------------------------
;; parsec-or choice try the parsers until one
succeeds
;; parsec-try try try parser and consume no
input when an error occurs
+;; parsec-lookahead lookahead try parser and consume no
input when successful
+;; parsec-peek try && lookahead try parser without
comsuming any input
+;; parsec-peek-p try && lookahead same as parsec-peek except
the return value for failure
;; parsec-with-error-message <?> (similar) use the new error message
when an error occurs
;; parsec-many many apply the parser zero or
more times
;; parsec-many1 many1 apply the parser one or
more times
- [elpa] master 14b28a1 16/60: Add basic README, (continued)
- [elpa] master 14b28a1 16/60: Add basic README, Junpeng Qiu, 2016/10/25
- [elpa] master 606fed1 10/60: Add simple JSON parser, Junpeng Qiu, 2016/10/25
- [elpa] master d8cd9d6 17/60: Better naming, Junpeng Qiu, 2016/10/25
- [elpa] master a5ca813 04/60: Full & simple parser, Junpeng Qiu, 2016/10/25
- [elpa] master 9996b5b 31/60: Update full-csv-parser, Junpeng Qiu, 2016/10/25
- [elpa] master bdfcbde 23/60: Update library description, Junpeng Qiu, 2016/10/25
- [elpa] master 2e8c52b 40/60: Make sure parsec-not-followed-by consumes no input, Junpeng Qiu, 2016/10/25
- [elpa] master fb26929 34/60: Fix parsec-make-alternatives, Junpeng Qiu, 2016/10/25
- [elpa] master 31388e6 52/60: Add -s aliases, Junpeng Qiu, 2016/10/25
- [elpa] master 34521c6 53/60: Update README about *-s functions, Junpeng Qiu, 2016/10/25
- [elpa] master 8f0c266 58/60: Add doc for parsec-peek(-p),
Junpeng Qiu <=
- [elpa] master ffd42de 45/60: Use simple-csv-parser.el as a demo, Junpeng Qiu, 2016/10/25
- [elpa] master bf49fb6 38/60: Upate README, Junpeng Qiu, 2016/10/25
- [elpa] master 966ca9e 43/60: Add comments to parsec.el, Junpeng Qiu, 2016/10/25
- [elpa] master c61a38c 22/60: Add convenient newline methods, Junpeng Qiu, 2016/10/25
- [elpa] master 0c3408a 01/60: Init commit, Junpeng Qiu, 2016/10/25
- [elpa] master 1929932 02/60: Split into two files, Junpeng Qiu, 2016/10/25
- [elpa] master fd77961 25/60: Add a few simple API, Junpeng Qiu, 2016/10/25
- [elpa] master 12d2ad6 24/60: Bug fixes, Junpeng Qiu, 2016/10/25
- [elpa] master adf4706 20/60: Add many-till, notFollowedBy and fix others, Junpeng Qiu, 2016/10/25
- [elpa] master 32809ad 30/60: Add parsec-error-new-2, Junpeng Qiu, 2016/10/25