use $subsections instead of $subsection

db4
Doug Coleman 2009-11-18 16:40:18 -06:00
parent 11c9c6004f
commit daf3094b8c
2 changed files with 30 additions and 27 deletions

View File

@ -435,9 +435,11 @@ ARTICLE: "peg.ebnf" "EBNF"
"The " { $vocab-link "peg.ebnf" } " vocabulary provides a DSL that allows writing PEG parsers that look like " "The " { $vocab-link "peg.ebnf" } " vocabulary provides a DSL that allows writing PEG parsers that look like "
"EBNF syntax. It provides three parsing words described below. These words all " "EBNF syntax. It provides three parsing words described below. These words all "
"accept the same EBNF syntax. The difference is in how they are used. " "accept the same EBNF syntax. The difference is in how they are used. "
{ $subsection POSTPONE: <EBNF } { $subsections
{ $subsection POSTPONE: [EBNF } POSTPONE: <EBNF
{ $subsection POSTPONE: EBNF: } POSTPONE: [EBNF
POSTPONE: EBNF:
}
"The EBNF syntax is composed of a series of rules of the form: " "The EBNF syntax is composed of a series of rules of the form: "
{ $code { $code
"rule1 = ..." "rule1 = ..."
@ -447,20 +449,20 @@ ARTICLE: "peg.ebnf" "EBNF"
"and it is expected that the remaining rules are used by that rule. Rules may be " "and it is expected that the remaining rules are used by that rule. Rules may be "
"left recursive. " "left recursive. "
"Each rule can contain the following: " "Each rule can contain the following: "
{ $subsection "peg.ebnf.strings" } { $subsections "peg.ebnf.strings"
{ $subsection "peg.ebnf.any" } "peg.ebnf.any"
{ $subsection "peg.ebnf.sequence" } "peg.ebnf.sequence"
{ $subsection "peg.ebnf.choice" } "peg.ebnf.choice"
{ $subsection "peg.ebnf.option" } "peg.ebnf.option"
{ $subsection "peg.ebnf.one-or-more" } "peg.ebnf.one-or-more"
{ $subsection "peg.ebnf.zero-or-more" } "peg.ebnf.zero-or-more"
{ $subsection "peg.ebnf.and" } "peg.ebnf.and"
{ $subsection "peg.ebnf.not" } "peg.ebnf.not"
{ $subsection "peg.ebnf.character-class" } "peg.ebnf.character-class"
{ $subsection "peg.ebnf.foreign-rules" } "peg.ebnf.foreign-rules"
{ $subsection "peg.ebnf.action" } "peg.ebnf.action"
{ $subsection "peg.ebnf.semantic-action" } "peg.ebnf.semantic-action"
{ $subsection "peg.ebnf.variable" } "peg.ebnf.variable" }
"Grammars defined in EBNF need to handle each character, or sequence of " "Grammars defined in EBNF need to handle each character, or sequence of "
"characters in the input. This can be tedious for dealing with whitespace in " "characters in the input. This can be tedious for dealing with whitespace in "
"grammars that have 'tokens' separated by whitespace. You can define your " "grammars that have 'tokens' separated by whitespace. You can define your "
@ -468,7 +470,7 @@ ARTICLE: "peg.ebnf" "EBNF"
"those tokens, allowing you to ignore the whitespace issue. The tokenizer " "those tokens, allowing you to ignore the whitespace issue. The tokenizer "
"can be changed at various parts in the grammar as needed. The JavaScript grammar " "can be changed at various parts in the grammar as needed. The JavaScript grammar "
"does this to define the optional semicolon rule for example." "does this to define the optional semicolon rule for example."
{ $subsection "peg.ebnf.tokenizers" } { $subsections "peg.ebnf.tokenizers" }
; ;
ABOUT: "peg.ebnf" ABOUT: "peg.ebnf"

View File

@ -108,13 +108,14 @@ $nl
"To use the api you must set the variables " { $link key-id } " and " "To use the api you must set the variables " { $link key-id } " and "
{ $link secret-key } " to your Amazon S3 key and secret key respectively. Once " { $link secret-key } " to your Amazon S3 key and secret key respectively. Once "
"this is done you can call any of the words below." "this is done you can call any of the words below."
{ $subsection buckets } { $subsections buckets
{ $subsection create-bucket } create-bucket
{ $subsection delete-bucket } delete-bucket
{ $subsection keys } keys
{ $subsection get-object } get-object
{ $subsection put-object } put-object
{ $subsection delete-object } delete-object
}
; ;
ABOUT: "s3" ABOUT: "s3"