peg.ebnf: fix a couple of typos in docs
parent
72d91eea8d
commit
0048670ad7
|
@ -120,7 +120,7 @@ ARTICLE: "peg.ebnf.choice" "Choice"
|
||||||
ARTICLE: "peg.ebnf.option" "Option"
|
ARTICLE: "peg.ebnf.option" "Option"
|
||||||
"Any rule element followed by a question mark (?) is considered optional. The "
|
"Any rule element followed by a question mark (?) is considered optional. The "
|
||||||
"rule is tested against the input. If it succeeds the result is stored in the AST. "
|
"rule is tested against the input. If it succeeds the result is stored in the AST. "
|
||||||
"If it fails then the parse still suceeds and false (f) is stored in the AST."
|
"If it fails then the parse still succeeds and false (f) is stored in the AST."
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example
|
{ $example
|
||||||
"USING: prettyprint peg.ebnf ;"
|
"USING: prettyprint peg.ebnf ;"
|
||||||
|
@ -219,7 +219,7 @@ ARTICLE: "peg.ebnf.action" "Action"
|
||||||
"consumes the AST of the rule match and leaves a new AST as the result. "
|
"consumes the AST of the rule match and leaves a new AST as the result. "
|
||||||
"The stack effect of the action can be " { $snippet "( ast -- ast )" } " or "
|
"The stack effect of the action can be " { $snippet "( ast -- ast )" } " or "
|
||||||
{ $snippet "( -- ast )" } ". "
|
{ $snippet "( -- ast )" } ". "
|
||||||
"If it is the latter then the original AST is implcitly dropped and will be "
|
"If it is the latter then the original AST is implicitly dropped and will be "
|
||||||
"replaced by the AST left on the stack. This is mostly useful if variables are "
|
"replaced by the AST left on the stack. This is mostly useful if variables are "
|
||||||
"used in the rule since they can be referenced like locals in the action quotation. "
|
"used in the rule since they can be referenced like locals in the action quotation. "
|
||||||
"The action is defined by having a ' => ' at the end of a rule and "
|
"The action is defined by having a ' => ' at the end of a rule and "
|
||||||
|
|
Loading…
Reference in New Issue