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-10-11 00:27] – edheldil | formats:zax [2010-10-17 21:51] (current) – edheldil | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== ZAX File Format | + | ==== CObject Text File ==== |
- | === Purpose: === | + | 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. |
- | === EBNF specification === | + | ==== Purpose: ==== |
+ | |||
+ | zax files | ||
+ | |||
+ | textures | ||
+ | |||
+ | surface types (.STY) | ||
+ | ...? | ||
+ | |||
+ | ==== 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 ; | ||
+ | |||
+ | init_args = " | ||
+ | |||
+ | cobject_data = indent, " | ||
+ | keyvalue_data = { indent , key , " | ||
+ | raw_data = { indent , value , EOL } ; | ||
+ | |||
+ | key = limited string ; | ||
+ | value = string | bool | int | float | cobject ; | ||
+ | indent = { whitespace } | ||
+ | |||
+ | bool = " | ||
+ | int = ( [ " | ||
+ | float = float decimal | float exponential | limited string ; | ||
+ | float decimal = [ " | ||
+ | float exponential = float decimal , " | ||
+ | string = { printable | whitespace } ; | ||
+ | limited string = keychar | ( keychar , { keychar | whitespace } , keychar } ; | ||
+ | classname = letter , { letter | digit | " | ||
+ | |||
+ | EOL = " | ||
+ | digit = " | ||
+ | whitespace = " " | " | ||
+ | |||
+ | (* meaning of these is hopefully clear *) | ||
+ | printable = ? " | ||
+ | keychar = ? " | ||
+ | letter = ? " | ||
+ | |||
+ | ==== Classes ==== | ||
+ | Activities/ | ||
- | zax ::= " | ||
- | | ||
- | | ||
- | | e | ||
- | | ||
- | ... |
formats/zax.txt · Last modified: 2010-10-17 21:51 by edheldil