Skip to content

Commit 64adab1

Browse files
committed
fix: number lab 6 headings consistently with previous labs
- i.e. use 1, 2, etc, not A, B
1 parent d59e88b commit 64adab1

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

assets/workshops/workshop06-solutions.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1 class="title"><p>CITS5501 lab 6 (week 7) – grammars and syntax-based
201201
<h2 id="toc-title">Contents</h2>
202202
<ul>
203203
<li><a href="#reading" id="toc-reading">Reading</a></li>
204-
<li><a href="#a.-command-line-argument-parsing" id="toc-a.-command-line-argument-parsing">A. Command-line argument
204+
<li><a href="#command-line-argument-parsing" id="toc-command-line-argument-parsing">1. Command-line argument
205205
parsing</a>
206206
<ul>
207207
<li><a href="#documenting-command-line-arguments" id="toc-documenting-command-line-arguments">Documenting command-line
@@ -210,16 +210,17 @@ <h2 id="toc-title">Contents</h2>
210210
command-line argument syntax</a></li>
211211
<li><a href="#generators" id="toc-generators">Generators</a></li>
212212
</ul></li>
213-
<li><a href="#b.-hand-written-parsers" id="toc-b.-hand-written-parsers">B. Hand-written parsers</a></li>
214-
<li><a href="#c.-testing-grammars-coverage" id="toc-c.-testing-grammars-coverage">C. Testing grammars –
213+
<li><a href="#hand-written-parsers" id="toc-hand-written-parsers">2.
214+
Hand-written parsers</a></li>
215+
<li><a href="#testing-grammars-coverage" id="toc-testing-grammars-coverage">3. Testing grammars –
215216
coverage</a></li>
216217
</ul>
217218
</nav>
218219
<p></p>
219220
<h2 id="reading">Reading</h2>
220221
<p>It is strongly suggested you complete the recommended readings for
221-
weeks 1-6 <em>before</em> attempting this lab/workshop.</p>
222-
<h2 id="a.-command-line-argument-parsing">A. Command-line argument
222+
weeks 1-7 <em>before</em> attempting this lab/workshop.</p>
223+
<h2 id="command-line-argument-parsing">1. Command-line argument
223224
parsing</h2>
224225
<p>A very common place to use grammars is when parsing <em>command-line
225226
arguments</em> to applications. As an example, we’ll look at a
@@ -343,7 +344,7 @@ <h3 id="generators">Generators</h3>
343344
<pre><code>&lt;image&gt; ::= &quot;debian&quot; | &quot;ubuntu&quot; | &quot;ubuntu&quot; | &quot;ubuntu&quot;
344345
| &quot;ubuntu&quot; | &quot;fedora&quot;</code></pre>
345346
</div>
346-
<h2 id="b.-hand-written-parsers">B. Hand-written parsers</h2>
347+
<h2 id="hand-written-parsers">2. Hand-written parsers</h2>
347348
<p>Suppose we wanted to write code ourselves to parse the command-line
348349
arguments of a program according to a grammar like this.</p>
349350
<p>For small programs, the simplest way is usally is to implement a
@@ -375,8 +376,7 @@ <h2 id="b.-hand-written-parsers">B. Hand-written parsers</h2>
375376
either Apache Commons CLI or Picocli, and amend our
376377
<code>MyDockerLiteProgram</code> class to use one of these libraries to
377378
parse its command-line arguments.</p>
378-
<h2 id="c.-testing-grammars-coverage">C. Testing grammars –
379-
coverage</h2>
379+
<h2 id="testing-grammars-coverage">3. Testing grammars – coverage</h2>
380380
<p>Recall that when testing something that can be represented as a
381381
grammar, there are different levels of <em>coverage</em> we might aim to
382382
achieve.</p>

assets/workshops/workshop06-solutions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ include-before: |
2121

2222
## Reading
2323

24-
It is strongly suggested you complete the recommended readings for weeks 1-6
24+
It is strongly suggested you complete the recommended readings for weeks 1-7
2525
*before* attempting this lab/workshop.
2626

27-
## A. Command-line argument parsing
27+
## 1. Command-line argument parsing
2828

2929
A very common place to use grammars is when parsing *command-line arguments*
3030
to applications. As an example, we'll look at a simplified version of the
@@ -205,7 +205,7 @@ to get
205205
\endsolbox
206206

207207

208-
## B. Hand-written parsers
208+
## 2. Hand-written parsers
209209

210210
Suppose we wanted to write code ourselves to parse the command-line arguments of a program
211211
according to a grammar like this.
@@ -249,7 +249,7 @@ its command-line arguments.
249249
\endgenericbox
250250

251251

252-
## C. Testing grammars -- coverage
252+
## 3. Testing grammars -- coverage
253253

254254
Recall that when testing something that can be represented
255255
as a grammar, there are different levels of *coverage*

assets/workshops/workshop06.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1 class="title"><p>CITS5501 lab 6 (week 7) – grammars and syntax-based
201201
<h2 id="toc-title">Contents</h2>
202202
<ul>
203203
<li><a href="#reading" id="toc-reading">Reading</a></li>
204-
<li><a href="#a.-command-line-argument-parsing" id="toc-a.-command-line-argument-parsing">A. Command-line argument
204+
<li><a href="#command-line-argument-parsing" id="toc-command-line-argument-parsing">1. Command-line argument
205205
parsing</a>
206206
<ul>
207207
<li><a href="#documenting-command-line-arguments" id="toc-documenting-command-line-arguments">Documenting command-line
@@ -210,16 +210,17 @@ <h2 id="toc-title">Contents</h2>
210210
command-line argument syntax</a></li>
211211
<li><a href="#generators" id="toc-generators">Generators</a></li>
212212
</ul></li>
213-
<li><a href="#b.-hand-written-parsers" id="toc-b.-hand-written-parsers">B. Hand-written parsers</a></li>
214-
<li><a href="#c.-testing-grammars-coverage" id="toc-c.-testing-grammars-coverage">C. Testing grammars –
213+
<li><a href="#hand-written-parsers" id="toc-hand-written-parsers">2.
214+
Hand-written parsers</a></li>
215+
<li><a href="#testing-grammars-coverage" id="toc-testing-grammars-coverage">3. Testing grammars –
215216
coverage</a></li>
216217
</ul>
217218
</nav>
218219
<p></p>
219220
<h2 id="reading">Reading</h2>
220221
<p>It is strongly suggested you complete the recommended readings for
221-
weeks 1-6 <em>before</em> attempting this lab/workshop.</p>
222-
<h2 id="a.-command-line-argument-parsing">A. Command-line argument
222+
weeks 1-7 <em>before</em> attempting this lab/workshop.</p>
223+
<h2 id="command-line-argument-parsing">1. Command-line argument
223224
parsing</h2>
224225
<p>A very common place to use grammars is when parsing <em>command-line
225226
arguments</em> to applications. As an example, we’ll look at a
@@ -326,7 +327,7 @@ <h3 id="generators">Generators</h3>
326327
chooses one randomly. How would you alter the grammar so that the image
327328
<code>ubuntu</code>” is chosen twice as often as the others?</li>
328329
</ul>
329-
<h2 id="b.-hand-written-parsers">B. Hand-written parsers</h2>
330+
<h2 id="hand-written-parsers">2. Hand-written parsers</h2>
330331
<p>Suppose we wanted to write code ourselves to parse the command-line
331332
arguments of a program according to a grammar like this.</p>
332333
<p>For small programs, the simplest way is usally is to implement a
@@ -358,8 +359,7 @@ <h2 id="b.-hand-written-parsers">B. Hand-written parsers</h2>
358359
either Apache Commons CLI or Picocli, and amend our
359360
<code>MyDockerLiteProgram</code> class to use one of these libraries to
360361
parse its command-line arguments.</p>
361-
<h2 id="c.-testing-grammars-coverage">C. Testing grammars –
362-
coverage</h2>
362+
<h2 id="testing-grammars-coverage">3. Testing grammars – coverage</h2>
363363
<p>Recall that when testing something that can be represented as a
364364
grammar, there are different levels of <em>coverage</em> we might aim to
365365
achieve.</p>

assets/workshops/workshop06.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ include-before: |
2121

2222
## Reading
2323

24-
It is strongly suggested you complete the recommended readings for weeks 1-6
24+
It is strongly suggested you complete the recommended readings for weeks 1-7
2525
*before* attempting this lab/workshop.
2626

27-
## A. Command-line argument parsing
27+
## 1. Command-line argument parsing
2828

2929
A very common place to use grammars is when parsing *command-line arguments*
3030
to applications. As an example, we'll look at a simplified version of the
@@ -162,7 +162,7 @@ Now put the original grammar back in and compile it again.
162162

163163

164164

165-
## B. Hand-written parsers
165+
## 2. Hand-written parsers
166166

167167
Suppose we wanted to write code ourselves to parse the command-line arguments of a program
168168
according to a grammar like this.
@@ -206,7 +206,7 @@ its command-line arguments.
206206
\endgenericbox
207207

208208

209-
## C. Testing grammars -- coverage
209+
## 3. Testing grammars -- coverage
210210

211211
Recall that when testing something that can be represented
212212
as a grammar, there are different levels of *coverage*

0 commit comments

Comments
 (0)