formats:zax
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
formats:zax [2009-11-08 23:24] – edheldil | formats:zax [2010-10-17 21:51] (current) – edheldil | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== CObject Text File ==== | ==== CObject Text File ==== | ||
+ | |||
+ | Most of the text data files in Lionheart are text dumps of classes. They are the same general format, so this page should suffice to describe them all. | ||
==== Purpose: ==== | ==== Purpose: ==== | ||
Line 12: | Line 14: | ||
==== EBNF specification ==== | ==== EBNF specification ==== | ||
+ | (* FIXME: I have not tested this specification, | ||
+ | (* FIXME: Dynamic Properties are not handled in this description *) | ||
+ | (* FIXME: DialogTree dash lines are not handled in this description *) | ||
+ | (* FIXME: spurious empty lines and EOLs are not handled as well *) | ||
+ | | ||
cobject = classname , [ init_args ] , EOL , cobject_data ; | cobject = classname , [ init_args ] , EOL , cobject_data ; | ||
+ | | ||
init_args = " | init_args = " | ||
- | + | | |
- | cobject_data = " | + | cobject_data = indent, |
- | keyvalue_data = { key , " | + | keyvalue_data = { indent , key , " |
- | raw_data = { value , EOL } ; | + | raw_data = { indent , value , EOL } ; |
+ | |||
key = limited string ; | key = limited string ; | ||
value = string | bool | int | float | cobject ; | value = string | bool | int | float | cobject ; | ||
+ | indent = { whitespace } | ||
+ | | ||
bool = " | bool = " | ||
int = ( [ " | int = ( [ " | ||
Line 29: | Line 37: | ||
float exponential = float decimal , " | float exponential = float decimal , " | ||
string = { printable | whitespace } ; | string = { printable | whitespace } ; | ||
- | limited string = printable | + | limited string = keychar |
+ | classname = letter , { letter | digit | " | ||
+ | |||
EOL = " | EOL = " | ||
digit = " | digit = " | ||
- | whitespace = " " ; | + | whitespace = " |
- | printable = " | + | |
+ | (* meaning of these is hopefully clear *) | ||
+ | printable = ? " | ||
+ | keychar = ? " | ||
+ | letter = ? " | ||
==== Classes ==== | ==== Classes ==== | ||
Activities/ | Activities/ | ||
formats/zax.1257722663.txt.gz · Last modified: 2009-11-08 23:24 by edheldil