Skip to content

Commit 68bf35c

Browse files
Eric Lindbladandreasabel
authored andcommitted
typos
1 parent cd4397c commit 68bf35c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

data/AlexWrappers.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ alexGetByte (AlexInput {alexStr=cs,alexBytePos=n}) =
145145
-- Token positions
146146

147147
-- `Posn' records the location of a token in the input text. It has three
148-
-- fields: the address (number of chacaters preceding the token), line number
148+
-- fields: the address (number of characters preceding the token), line number
149149
-- and column of a token within the file. `start_pos' gives the position of the
150150
-- start of the file and `eof_pos' a standard encoding for the end of file.
151151
-- `move_pos' calculates the new position after traversing a given character,

src/DFA.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ nfa2pdfa nfa pdfa (ss:umkd)
132132

133133
accs = sort_accs [acc| s<-ss, acc<-nst_accs (nfa!s)]
134134

135-
-- `sort_accs' sorts a list of accept values into decending order of priority,
135+
-- `sort_accs' sorts a list of accept values into descending order of priority,
136136
-- eliminating any elements that follow an unconditional accept value.
137137

138138
sort_accs:: [Accept a] -> [Accept a]

src/DFS.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ reverse_graph:: Graph -> Graph
7676
reverse_graph g@(sz,_) = mk_graph sz (rev_edges g)
7777

7878

79-
-- `t_close' takes the transitive closure of a graph; `scc' returns the stronly
80-
-- connected components of the graph and `top_sort' topologically sorts the
81-
-- graph. Note that the array is given one more element in order to avoid
82-
-- problems with empty arrays.
79+
-- `t_close' takes the transitive closure of a graph; `scc' returns the
80+
-- strongly connected components of the graph and `top_sort' topologically
81+
-- sorts the graph. Note that the array is given one more element in order
82+
-- to avoid problems with empty arrays.
8383

8484
t_close:: Graph -> Graph
8585
t_close g@(sz,_) = (sz,\v->ar!v)

src/NFA.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- (c) Chris Dornan 1995-2000, Simon Marlow 2003
66
--
77
-- The `scanner2nfa' takes a `Scanner' (see the `RExp' module) and
8-
-- generates its equivelent nondeterministic finite automaton. NFAs
8+
-- generates its equivalent nondeterministic finite automaton. NFAs
99
-- are turned into DFAs in the DFA module.
1010
--
1111
-- See the chapter on `Finite Automata and Lexical Analysis' in the

src/Output.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--
55
-- (c) Simon Marlow 2003
66
--
7-
-- Code-outputing and table-generation routines
7+
-- Code-outputting and table-generation routines
88
--
99
-- ----------------------------------------------------------------------------}
1010

src/ParseMonad.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ alexGetByte (p,_,[],(c:s)) = let p' = alexMove p c
5757
-- Token positions
5858

5959
-- `Posn' records the location of a token in the input text. It has three
60-
-- fields: the address (number of charaters preceding the token), line number
60+
-- fields: the address (number of characters preceding the token), line number
6161
-- and column of a token within the file. `start_pos' gives the position of the
6262
-- start of the file and `eof_pos' a standard encoding for the end of file.
6363
-- `move_pos' calculates the new position after traversing a given character,

0 commit comments

Comments
 (0)