|
3 | 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
4 | 4 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
5 | 5 | <head> |
6 | | -<!-- 2016-04-27 Wed 22:17 --> |
| 6 | +<!-- 2016-04-27 Wed 22:29 --> |
7 | 7 | <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
9 | 9 | <title>Research Report Notes</title> |
@@ -188,7 +188,7 @@ <h2>Table of Contents</h2> |
188 | 188 | </li> |
189 | 189 | <li><a href="#sec-term-rewrite">2.3. Term Rewriting and Program Transformation</a> |
190 | 190 | <ul> |
191 | | -<li><a href="#orgheadline8">2.3.1. Rewrite rules</a></li> |
| 191 | +<li><a href="#orgheadline8">2.3.1. Term rewrite rules</a></li> |
192 | 192 | <li><a href="#orgheadline9">2.3.2. Strategies</a></li> |
193 | 193 | </ul> |
194 | 194 | </li> |
@@ -316,7 +316,8 @@ <h4 id="orgheadline4"><span class="section-number-4">2.2.1</span> Declarative st |
316 | 316 | (which will be discussed in <a href="#sec-term-rewrite">Term Rewriting</a>). Nowadays, two high-level |
317 | 317 | DSLs exist for specifying static semantic declaratively: NaBL and |
318 | 318 | TS. The two DSLs can work together: for instance, the type of a |
319 | | -variable can be set in NaBL, so that TS can make assertions on it. |
| 319 | +variable can be set with NaBL, so that TS can be used to make |
| 320 | +assertions on the type of that variable. |
320 | 321 | </p> |
321 | 322 | </div> |
322 | 323 | </div> |
@@ -416,13 +417,13 @@ <h3 id="sec-term-rewrite"><a id="orgheadline10"></a><span class="section-number- |
416 | 417 | </p> |
417 | 418 | </div> |
418 | 419 | <div id="outline-container-orgheadline8" class="outline-4"> |
419 | | -<h4 id="orgheadline8"><span class="section-number-4">2.3.1</span> Rewrite rules</h4> |
| 420 | +<h4 id="orgheadline8"><span class="section-number-4">2.3.1</span> Term rewrite rules</h4> |
420 | 421 | <div class="outline-text-4" id="text-2-3-1"> |
421 | 422 | <p> |
422 | | -A rewrite rule is a transformation on a term, in which |
423 | | -the left-hand side allows for pattern matching and variable binding, |
424 | | -and the right hand side instantiates new replacement terms. An example |
425 | | -of a rewrite rule is given below. |
| 423 | +A rewrite rule is a transformation on a term, in which the left-hand |
| 424 | +side allows for pattern matching and variable binding, and the right |
| 425 | +hand side instantiates new replacement terms. An example of a rewrite |
| 426 | +rule is given below. |
426 | 427 | </p> |
427 | 428 | <pre class="example"> |
428 | 429 | rules |
@@ -457,9 +458,9 @@ <h4 id="orgheadline9"><span class="section-number-4">2.3.2</span> Strategies</h4 |
457 | 458 | resugar |
458 | 459 | </pre> |
459 | 460 | <p> |
460 | | -For example, <code>innermost</code> is a strategy to apply the strategy given as |
461 | | -parameter (a composition of rewrite rules) on the innermost AST node, |
462 | | -and repeats this until the strategy is no longer applicable<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup>. |
| 461 | +For example, the strategy <code>innermost</code> is used to apply the strategy |
| 462 | +given as parameter (a composition of rewrite rules) in a specific |
| 463 | +traversal order on the AST nodes. |
463 | 464 | </p> |
464 | 465 | </div> |
465 | 466 | </div> |
@@ -753,15 +754,12 @@ <h2 class="footnotes">Footnotes: </h2> |
753 | 754 | the TU Delft. The slides of this portion of the course can be found |
754 | 755 | here: <a href="http://tudelft-in4303.github.io/lectures/specification/">http://tudelft-in4303.github.io/lectures/specification/</a>.</div></div> |
755 | 756 |
|
756 | | -<div class="footdef"><sup><a id="fn.2" class="footnum" href="#fnr.2">2</a></sup> <div class="footpara">Is |
757 | | -this correct?</div></div> |
758 | | - |
759 | 757 |
|
760 | 758 | </div> |
761 | 759 | </div></div> |
762 | 760 | <div id="postamble" class="status"> |
763 | 761 | <p class="author">Author: Skip Lentz</p> |
764 | | -<p class="date">Created: 2016-04-27 Wed 22:17</p> |
| 762 | +<p class="date">Created: 2016-04-27 Wed 22:29</p> |
765 | 763 | <p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p> |
766 | 764 | </div> |
767 | 765 | </body> |
|
0 commit comments