Owner's manual

R E A L - T I M E L I G H T N I N G D E T E C T I O N
257
257257
257
Appendix C
Custom Summary
Language Definition
This is a formal description of the custom summary language,
used in custom summary and status line template files.
The symbol to the left of the ::= sign is replaced by the
symbols to the right of the ::= sign.
Symbols enclosed in curly brackets {} may be repeated any
number of times, including zero times.
The | character represents a choice between two different
sets of symbols.
The < and > signs enclose a symbolic term.
Anything in boldface is to be included exactly as it appears.
<custom summary template> ::= {<statement> | <comment>}
<comment> ::= ;
;;
; {<alphanumeric character>}
<statement> ::= <command> | <if statement>
<command> ::= #
##
#<string> | #
##
#<string> (
((
( <expression {,
,,
,
<expression>} )
))
)
<string> ::= <alphanumeric character> {<alphanumeric
character>}
<if statement> ::=
if
ifif
if <expression> then
thenthen
then {<statement>} {elseif
elseifelseif
elseif
<expression> then
thenthen
then {<statement>}} endif
endifendif
endif |
if
ifif
if <expression> then
thenthen
then {<statement>} {elseif
elseifelseif
elseif
<expression> then
thenthen
then {<statement>}} else
elseelse
else {<statement>}
endif
endifendif
endif
<expression> ::= <simple expression> | <simple
expression> <relational operator> <simple expression>
<relational operator> ::= <
<<
< | >
>>
> | <=
<=<=
<= | >=
>=>=
>= | <>
<><>
<> | =
==
=