Skip to content

Commit cfff693

Browse files
committed
remove trailing whitespace
1 parent c1724eb commit cfff693

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/Language/grammar_tutorial.pod6

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ So if we got a URI on the server of "/product/update/7/notify" we would want our
8787
8888
The first thing we do is define the grammar class. We're going to need to define our subject, command and data as well. I think we'll use token for them, since we don't care about whitespace in the regex.
8989
90-
=begin code
90+
=begin code
9191
grammar REST {
9292
token subject { \w+ }
9393
token command { \w+ }
@@ -174,7 +174,7 @@ There are several ways to accomplish this. For example, you could change the com
174174
175175
=begin code :skip-test
176176
token command { \w+ }
177-
177+
178178
# …becomes…
179179
180180
token command { 'create'|'retrieve'|'update'|'delete' }
@@ -204,13 +204,13 @@ This is what we've come up for processing our RESTful URIs so far:
204204
grammar REST
205205
{
206206
token TOP { <slash><subject><slash><command><slash>?<data>? }
207-
207+
208208
proto token command {*}
209209
token command:sym<create> { <sym> }
210210
token command:sym<retrieve> { <sym> }
211211
token command:sym<update> { <sym> }
212212
token command:sym<delete> { <sym> }
213-
213+
214214
token subject { \w+ }
215215
token data { .* }
216216
token slash { \s* '/' \s* }
@@ -230,7 +230,7 @@ Let's look at various URI's and how they behave being passed through our grammar
230230
}
231231
232232
# Sub: product Cmd: update Dat: 7/notify
233-
# Sub: product Cmd: create Dat:
233+
# Sub: product Cmd: create Dat:
234234
# Sub: item Cmd: delete Dat: 4
235235
=end code
236236
@@ -272,13 +272,13 @@ Here we are back to our grammar, as we left it.
272272
grammar REST
273273
{
274274
token TOP { <slash><subject><slash><command><slash>?<data>? }
275-
275+
276276
proto token command {*}
277277
token command:sym<create> { <sym> }
278278
token command:sym<retrieve> { <sym> }
279279
token command:sym<update> { <sym> }
280280
token command:sym<delete> { <sym> }
281-
281+
282282
token subject { \w+ }
283283
token data { .* }
284284
token slash { \s* '/' \s* }
@@ -410,13 +410,13 @@ And this is the grammar and grammar actions that got us there, to recap:
410410
grammar REST
411411
{
412412
token TOP { <slash><subject><slash><command><slash>?<data>? }
413-
413+
414414
proto token command {*}
415415
token command:sym<create> { <sym> }
416416
token command:sym<retrieve> { <sym> }
417417
token command:sym<update> { <sym> }
418418
token command:sym<delete> { <sym> }
419-
419+
420420
token subject { \w+ }
421421
token data { .* }
422422
token slash { \s* '/' \s* }

0 commit comments

Comments
 (0)