Commit 5861950c authored by Jamie A. Jennings's avatar Jamie A. Jennings

Minor edits

parent 2c640159
Pipeline #51344713 passed with stage
in 1 minute and 12 seconds
<!-- -*- Mode: GFM; -*- -->
<!-- -->
<!-- © Jamie A. Jennings 2019 -->
<!-- © Copyright IBM Corporation 2016, 2017, 2018 -->
<!-- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) -->
<!-- AUTHOR: Jamie A. Jennings -->
## If you know regex, this is RPL <a name="regex-vs-rpl"></a>
### PEG languages are greedy and possessive
RPL is a language for writing Parsing Expression Grammars, which are by definition both greedy and possessive.
### Anchors, tokens, and matching only part of the input
* A Rosie pattern begins matching at the start of the input line, so the `^` (caret) anchor is rarely needed in RPL. To skip over characters, you have to be explicit in your pattern about what to skip. See [below](#find_patterns) for more.
......
<!-- -*- Mode: GFM; -*- -->
<!-- -->
<!-- © Copyright Jamie A. Jennings 2019 -->
<!-- © Copyright IBM Corporation 2016, 2017, 2018 -->
<!-- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) -->
<!-- AUTHOR: Jamie A. Jennings -->
......@@ -8,6 +9,7 @@
Notes:
1. The RPL language is versioned independently of Rosie itself.
2. Unit tests are written as RPL comments and are described in the [Unit Test Documentation](unittest.md).
2. See also the [Command Line Interface manual](man/rosie.1.html) and the interactive [read-eval-print loop (repl)](repl.md) documentation.
3. See also the [Standard Library documentation](standardlib.md). The RPL
"standard library" is bundled with Rosie and contains many pre-defined patterns.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment