Skip to content

Commit bebc6d6

Browse files
committed
Typos
1 parent bfee1e1 commit bebc6d6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ch02/2.3/2.3.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
### 2.3.1
44

5-
Construct a syntax-directed translation scheme that trans­ lates arithmetic expressions from infix notation into prefix notation in which an operator appears before its operands; e.g. , -xy is the prefix notation for x - y . Give annotated parse trees for the inputs 9-5+2 and 9-5*2.。
5+
Construct a syntax-directed translation scheme that translates arithmetic
6+
expressions from infix notation into prefix notation in which an operator
7+
appears before its operands; e.g. , -xy is the prefix notation for x - y. Give
8+
annotated parse trees for the inputs 9-5+2 and 9-5*2.
69

710
#### answer
811

@@ -33,7 +36,9 @@ factor -> digit {print(digit)}
3336

3437
### 2.3.2
3538

36-
Construct a syntax-directed translation scheme that trans­ lates arithmetic expressions from postfix notation into infix notation. Give annotated parse trees for the inputs 95-2* and 952*-.
39+
Construct a syntax-directed translation scheme that translates arithmetic
40+
expressions from postfix notation into infix notation. Give annotated parse
41+
trees for the inputs 95-2* and 952*-.
3742

3843
#### answer
3944

@@ -65,7 +70,8 @@ E -> {print("(")} E {print(op)} E {print(")"}} op | digit {print(digit)}
6570

6671
### 2.3.3
6772

68-
Construct a syntax-directed translation scheme that trans­ lates integers into roman numerals
73+
Construct a syntax-directed translation scheme that translates integers into
74+
roman numerals.
6975

7076
#### answer
7177

@@ -157,7 +163,8 @@ digit -> smallDigit {digit.v = smallDigit.v}
157163
158164
### 2.3.5
159165
160-
Construct a syntax-directed translation scheme that trans­ lates postfix arithmetic expressions into equivalent prefix arithmetic expressions.
166+
Construct a syntax-directed translation scheme that translates postfix
167+
arithmetic expressions into equivalent prefix arithmetic expressions.
161168
162169
#### answer
163170

0 commit comments

Comments
 (0)