 ! Copyright (C) 2009 Chris Double.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: help.syntax help.markup peg peg.search ;
-IN: peg.ebnf 
+IN: peg.ebnf
 
 HELP: <EBNF
 { $syntax "<EBNF ...ebnf... EBNF>" }
 { $values { "...ebnf..." "EBNF DSL text" } }
-{ $description 
-    "Creates a " { $vocab-link "peg" } 
+{ $description
+    "Creates a " { $vocab-link "peg" }
     " object that parses a string using the syntax "
     "defined with the EBNF DSL. The peg object can be run using the " { $link parse }
     " word and can be used with the " { $link search } " and " { $link replace } " words."
 }
 { $examples
-    { $example 
+    { $example
        "USING: kernel prettyprint peg.ebnf peg.search ;"
        "\"abcdab\" <EBNF rule=\"a\" \"b\" => [[ drop \"foo\" ]] EBNF> replace ."
        "\"foocdfoo\""

"A full stop character (.) will match any single token in the input string. "
"The AST resulting from this is the token itself."
{ $examples
    { $example 
       "USING: prettyprint peg.ebnf ;"
       "\"abc\" [EBNF rule=\"a\" . \"c\" EBNF] ."
       "V{ \"a\" 98 \"c\" }"

       "\"ac\" [EBNF rule=\"a\" \"b\"? \"c\" EBNF] ."
       "V{ \"a\" f \"c\" }"
    }
}
;

ARTICLE: "peg.ebnf.character-class" "Character Class"
