View Single Post
Old 05-19-2014, 12:37 PM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by eschwartz View Post
Thanks for the mention of BNF! I've been learning everything myself as I come across stuff -- I learn in my spare time, this isn't part of my curriculum, yet -- so I appreciate any time someone mentions anything I haven't come across yet. (I was wondering a bit what some description were that turns out to be BNF.)

According to Kovid's docs (and thus my understanding),
Code:
{authors:uppercase()|prefix|suffix}
is valid but the way you describe it, it must be
Code:
{authors:uppercase():|prefix|suffix}
Is this optional, or did you/kovid make a mistake?

I'd test it out myself but I typed this on my Kindle Touch.
I made a mistake in the grammar. That colon should not precede the bar.

It should be
Code:
"{" [ "field name" ] [ [ ":" [ "formatting" ] ] [ ":" "single Function" ] [ "|" [ "prefix" ] "|" [ "suffix" ] ] ] "}"

or

"{" [ "field name" ] [ [ ":" [ "formatting" ] ] [ ":'" "Template Program" "'" ] [ "|" [ "prefix" ] "|" [ "suffix" ] ] ] "}"
I think I messed up because I was struggling to deal with the alternation for Template Program Mode and for the optional formatting. Or perhaps because my brain no longer works as well as it once did.
chaley is offline   Reply With Quote