Custom summary language definition, Appendix c – Boltek Lightning/2000 User Manual
Page 257
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
257
257
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
if
if
if <expression> then
then
then
then {<statement>} {elseif
elseif
elseif
elseif
<expression> then
then
then
then {<statement>}} endif
endif
endif
endif |
if
if
if
if <expression> then
then
then
then {<statement>} {elseif
elseif
elseif
elseif
<expression> then
then
then
then {<statement>}} else
else
else
else {<statement>}
endif
endif
endif
endif
<expression> ::= <simple expression> | <simple
expression> <relational operator> <simple expression>
<relational operator> ::= <
<
<
< | >
>
>
> | <=
<=
<=
<= | >=
>=
>=
>= | <>
<>
<>
<> | =
=
=
=