Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix indentation in 5.3.md #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions ch05/5.3/5.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@

1.

<table>
<thead>
<tr>
<th></th>
<th>产生式</th>
<th>语法规则</th>
</tr>
</thead>
<tbody>
<tr>
<td>1)</td>
<td>E -> E_1 + T</td>
<td>E.type = E_1.type === float || T.type === float ? float : int</td>
</tr>
<tr>
<td>2)</td>
<td>E -> T</td>
<td>E.type = T.type</td>
</tr>
<tr>
<td>3)</td>
<td>T -> num.num</td>
<td>T.type = float</td>
</tr>
<tr>
<td>4)</td>
<td>T -> num</td>
<td>T.type = int</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th></th>
<th>产生式</th>
<th>语法规则</th>
</tr>
</thead>
<tbody>
<tr>
<td>1)</td>
<td>E -> E_1 + T</td>
<td>E.type = E_1.type === float || T.type === float ? float : int</td>
</tr>
<tr>
<td>2)</td>
<td>E -> T</td>
<td>E.type = T.type</td>
</tr>
<tr>
<td>3)</td>
<td>T -> num.num</td>
<td>T.type = float</td>
</tr>
<tr>
<td>4)</td>
<td>T -> num</td>
<td>T.type = int</td>
</tr>
</tbody>
</table>


### 5.3.2 !
Expand Down Expand Up @@ -142,4 +142,4 @@

### 5.3.3 !

给出一个 SDD 对 x\*(3\*x+x\*x) 这样的表达式求微分。表达式中涉及运算符 + 和 * 、变量 x 和常量。假设不进行任何简化,也就是说,比如 3\*x 将被翻译为 3\*1+0\*x。
给出一个 SDD 对 x\*(3\*x+x\*x) 这样的表达式求微分。表达式中涉及运算符 + 和 * 、变量 x 和常量。假设不进行任何简化,也就是说,比如 3\*x 将被翻译为 3\*1+0\*x。