Vocabulary parser-combinators .
simple Inputs None
Outputs Word description Return a parser that consumes a string enclosed in the '*' character from the input string. This is commonly used in markup languages to indicate bold faced text.
USING: parser-combinators parser-combinators.simple prettyprint ;
"*foo*" bold-parser parse-1 ."foo"
USING: kernel parser-combinators parser-combinators.simple prettyprint sequences ;
"*foo*" bold-parser [ "<strong>" "</strong>" surround ] <@ parse-1 ."<strong>foo</strong>"
See also $see-also ,
digit-parser ,
integer-parser ,
string-parser ,
italic-parser ,
comma-list Definition
This documentation was generated offline from a
load-all
image. If you want, you can also
browse the documentation from within the UI developer tools . See
the Factor website
for more information.
Factor 0.101 x86.64 (2285, heads/master-efda6dad2f, Nov 20 2024 16:02:37)