From eb329bdac9fe56d67cb130fb6cdbb28743c6504b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 12 Dec 2020 16:31:53 -0800 Subject: Bunch of changes, including some bpeg->bp renaming, and adding visualizations --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 9eb3b03..537055c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ BPEG is a parsing expression grammar tool for the command line. It's written in pure C with no dependencies. ## Usage -`bpeg [flags] [...]` +`bp [flags] [...]` ### Flags * `-h` `--help` print the usage and quit @@ -12,13 +12,13 @@ It's written in pure C with no dependencies. * `-i` `--ignore-case` perform a case-insensitive match * `-d` `--define :` define a grammar rule * `-D` `--define-string :` define a grammar rule (string-pattern) -* `-p` `--pattern ` provide a pattern (equivalent to bpeg ' -* `-P` `--pattern-string ` provide a string pattern (equivalent to bpeg '', but may be useful if '' begins with a '-') +* `-p` `--pattern ` provide a pattern (equivalent to `bp '\()'`) +* `-P` `--pattern-string ` provide a string pattern (equivalent to `bp ''`, but may be useful if `''` begins with a '-') * `-r` `--replace ` replace the input pattern with the given replacement -* `-m` `--mode ` set the behavior mode (defult: find-all) +* `-m` `--mode ` set the behavior mode (defult: `find-all`) * `-g` `--grammar ` use the specified file as a grammar -See `man ./bpeg.1` for more details. +See `man ./bp.1` for more details. ## BPEG Patterns BPEG patterns are a mixture of Parsing Expression Grammar and Regular @@ -63,7 +63,7 @@ Pattern | Meaning `#( block comment )#` | A block comment `# line comment` | A line comment -See `man ./bpeg.1` for more details. +See `man ./bp.1` for more details. ## License BPEG is provided under the MIT license with the [Commons Clause](https://commonsclause.com/) -- cgit v1.2.3