User Tools

Site Tools


snowberry:configuration_file_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

snowberry:configuration_file_syntax [2009-08-13 15:15] – external edit 127.0.0.1snowberry:configuration_file_syntax [2017-03-19 19:48] (current) skyjake
Line 1: Line 1:
 +====== Configuration file syntax ======
 +
 +This page presents the EBNF syntax definition of [[snowberry_configuration_file]]s.
 +
 +config-file ::= { S element } S
 +
 +element ::=  list | block 
 +
 +key ::=  value-key 
 +
 +row-key ::=  identifier S ":" S row 
 +
 +row ::=  { ascii-character } "\n" 
 +
 +value-key ::=  identifier S "=" S value { S value } 
 +
 +value ::=  string 
 +
 +string ::=  "\"" { ascii-character } "\"" 
 +
 +token ::=  { ascii-character, but not S nor E } 
 +
 +list ::=  identifier S "<" S valuelist S ">" 
 +
 +valuelist ::=  value { S "," S value } 
 +
 +block ::=  blocktype S identifier S  { identifier S value S } blockcontents 
 +
 +blocktype ::=  token 
 +
 +blockcontents ::=  "(" { S element } S ")" 
 +
 +identifier ::=  token 
 +
 +S ::=  "\t" | "\n" } //*whitespace*// 
 +
 +E ::=  "="  |  "("  |  ")"  |  "<"  |  ">"  | ","  //*separator*// 
 +
 +
 +