@@ -130,7 +130,7 @@ The output is quite long - over 450 lines of grammar rules - and as such I have
130130only included the most important parts in this chapter.
131131
132132Which symbols, then, are the most important? The names such as `program`, `expr`,
133- `stmt`,`primary`, `arg` etc. are always very important. It's because they
133+ `stmt`, `primary`, `arg` etc. are always very important. It's because they
134134represent the general parts of the grammatical elements of a programming
135135language. The following table outlines the elements we should generally focus on
136136in the syntax of a program.
@@ -170,7 +170,7 @@ For example, in C a function call is an expression but it can solely be put.
170170It means it is an expression but it can also be a statement.
171171
172172Conversely, when surrounded in parentheses, expressions become primaries.
173- It is because the lower the level of a element the higher the precedence it has.
173+ It is because the lower the level of an element the higher the precedence it has.
174174
175175The range of statements differ considerably between programming languages.
176176Let's consider assignment as an example.
@@ -253,7 +253,7 @@ The name `tLPAREN_ARG` comes from `t` for terminal symbol, `L` for left and
253253`PAREN` for parentheses - it is the open parenthesis. Why this isn't `'('`
254254is covered in the next section "Context-dependent scanner". Anyway, the purpose
255255of this rule is demote an `expr` to a `primary`. This creates
256- a cycle which can the seen in Figure 2, and the arrow shows how this rule is
256+ a cycle which can be seen in Figure 2, and the arrow shows how this rule is
257257reduced during parsing.
258258
259259!images/ch_parser_exprloop.jpg(`expr` demotion)!
@@ -1183,7 +1183,7 @@ I searched the place where setting `lex_gets` and this is what I found:
11831183
11841184
11851185
1186- `rb_io_gets()` is not a exclusive function for the parser
1186+ `rb_io_gets()` is not an exclusive function for the parser
11871187but one of the general-purpose library of Ruby.
11881188It is the function to read a line from an `IO` object.
11891189
0 commit comments