aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:57:33 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:57:33 +0100
commitfc925ae7a5c6130db3f6327b451d16cdc18d003f (patch)
tree5629f6ae4a7fb99a25ad31925382178d5cf00962
parentImprove the code a bit (diff)
downloadlibparser-fc925ae7a5c6130db3f6327b451d16cdc18d003f.tar.gz
libparser-fc925ae7a5c6130db3f6327b451d16cdc18d003f.tar.bz2
libparser-fc925ae7a5c6130db3f6327b451d16cdc18d003f.tar.xz
fix typosHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--README8
-rw-r--r--libparser-generate.12
-rw-r--r--libparser.76
-rw-r--r--libparser_parse_file.32
4 files changed, 9 insertions, 9 deletions
diff --git a/README b/README
index 90a3c0e..37b2701 100644
--- a/README
+++ b/README
@@ -101,14 +101,14 @@ EXTENDED DESCRIPTION
grammar = _, {rules, _};
The file must be encoded in UTF-8, with LF as the line
- break (CR and FF are illegal just becuase).
+ break (CR and FF are illegal just because).
In alternations, the first (leftmost) match is selected. The
- parser is able to backtrack incase it later turns out that it
+ parser is able to backtrack in case it later turns out that it
could not finish that branch. Whenever an exception is
reached, the parser will terminate there.
- Repeated symbols may occour any number of times, including
+ Repeated symbols may occur any number of times, including
zero. The compiler is able to backtrack if it takes too much.
Concatenation has higher precedence than alternation,
@@ -130,7 +130,7 @@ EXTENDED DESCRIPTION
Right-context-sensitive grammar
libparser originally used context-free grammar, but with
introduction of the rejection rule, specifically the ability
- to reject a rejection, it became a prase for
+ to reject a rejection, it became a phrase for
right-context-sensitive grammar which is a grammar that is
that can generate any context-sensitive language, it is however
weakly equivalent to context-sensitive grammar.
diff --git a/libparser-generate.1 b/libparser-generate.1
index 6e4e970..56d74f0 100644
--- a/libparser-generate.1
+++ b/libparser-generate.1
@@ -2,7 +2,7 @@
.SH NAME
libparser-generate \- Generate grammar definition for libparser
-.SH SYNPOSIS
+.SH SYNOPSIS
.B libparser-generate
.I main-rule
diff --git a/libparser.7 b/libparser.7
index ee0d552..5b5b9b3 100644
--- a/libparser.7
+++ b/libparser.7
@@ -118,11 +118,11 @@ The file must be encoded in UTF-8, with LF as the line
break (CR and FF are illegal just because).
.PP
In alternations, the first (leftmost) match is selected.
-The parser is able to backtrack incase it later turns
+The parser is able to backtrack in case it later turns
out that it could not finish that branch. Whenever an
exception is reached, the parser will terminate there.
.PP
-Repeated symbols may occour any number of times,
+Repeated symbols may occur any number of times,
including zero. The compiler is able to backtrack if it
takes too much.
.PP
@@ -153,7 +153,7 @@ recursion is always met).
.SS Right-context-sensitive grammar
libparser originally used context-free grammar, but with
introduction of the rejection rule, specifically the ability
-to reject a rejection, it became a prase for
+to reject a rejection, it became a phrase for
right-context-sensitive grammar which is a grammar that is
that can generate any context-sensitive language, it is
however weakly equivalent to context-sensitive grammar.
diff --git a/libparser_parse_file.3 b/libparser_parse_file.3
index 0f9b6e4..8c0883e 100644
--- a/libparser_parse_file.3
+++ b/libparser_parse_file.3
@@ -2,7 +2,7 @@
.SH NAME
libparser_parse_file \- Parse input with libparser
-.SH SYNPOSIS
+.SH SYNOPSIS
.nf
#include <libparser.h>