output view: make items selectable and use system colours
[pspp] / src / output / spv / old-binary.grammar
1 # PSPP - a program for statistical analysis.
2 # Copyright (C) 2017, 2018, 2019 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 LegacyBinary =>
18     00 byte[version] int16[n-sources] int32[member-size]
19     Metadata*[n-sources][metadata]
20     #Data*[n-sources][data]
21     #Strings?
22
23 Metadata =>
24     int32[n-values] int32[n-variables] int32[data-offset]
25     byte*28[source-name]
26     vB0(byte*36[ext-source-name] int32[x])
27
28 #Data => Variable*[n-variables]
29 #Variable => byte*288[variable-name] double*[n-values]
30
31 Strings => SourceMaps[maps] Labels
32
33 SourceMaps => int32[n-maps] SourceMap*[n-maps]
34 SourceMap => string[source-name] int32[n-variables] VariableMap*[n-variables]
35 VariableMap => string[variable-name] int32[n-data] DatumMap*[n-data]
36 DatumMap => int32[value-idx] int32[label-idx]
37
38 Labels => int32[n-labels] Label*[n-labels]
39 Label => int32[frequency] string[label]