talks: fix the printf examples

Reverse the order of parameters.
factor-shell
Alexander Iljin 2017-10-05 19:38:44 +03:00
parent b8a0feea5c
commit e60b5004b7
3 changed files with 6 additions and 6 deletions

View File

@ -172,8 +172,8 @@ CONSTANT: galois-slides
{ { $link POSTPONE: EBNF: } ": a complex parsing word" }
"Implements a custom syntax for expressing parsers: like OMeta!"
{ "Example: " { $vocab-link "printf-example" } }
{ $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" }
{ $code "5 \"Factor\" \"%s is %d years old\\n\" printf" }
{ $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" }
{ $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" }
}
{ $slide "Example: simple web browser"
{ $vocab-link "webkit-demo" }

View File

@ -335,8 +335,8 @@ CONSTANT: google-slides
{ { $link POSTPONE: EBNF: } ": a complex parsing word" }
"Implements a custom syntax for expressing parsers"
{ "Example: " { $vocab-link "printf-example" } }
{ $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" }
{ $code "5 \"Factor\" \"%s is %d years old\\n\" printf" }
{ $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" }
{ $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" }
}
{ $slide "Input/output library"
"One of Factor's strongest points: portable, full-featured, efficient"

View File

@ -192,8 +192,8 @@ CONSTANT: vpri-slides
{ { $link POSTPONE: EBNF: } ": a complex parsing word" }
"Implements a custom syntax for expressing parsers: like OMeta!"
{ "Example: " { $vocab-link "printf-example" } }
{ $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" }
{ $code "5 \"Factor\" \"%s is %d years old\\n\" printf" }
{ $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" }
{ $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" }
}
{ $slide "Example: simple web browser"
{ $vocab-link "webkit-demo" }