File: rm-strict.conf

package info (click to toggle)
gnucobol4 4.0~early~20200606-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,888 kB
  • sloc: sh: 119,499; ansic: 98,781; yacc: 16,917; lex: 4,610; cobol: 1,281; perl: 553; makefile: 521; sed: 16
file content (271 lines) | stat: -rw-r--r-- 9,112 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# GnuCOBOL compiler configuration
#
# Copyright (C) 2001-2012, 2014-2020 Free Software Foundation, Inc.
# Written by Keisuke Nishida, Roger While, Simon Sobisch, Edward Hart,
# Ron Norman
#
# This file is part of GnuCOBOL.
#
# The GnuCOBOL compiler is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# GnuCOBOL is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GnuCOBOL.  If not, see <https://www.gnu.org/licenses/>.


# Value: any string
name: "RM-COBOL"

# Value: enum
standard-define			6
#        CB_STD_OC = 0,
#        CB_STD_MF,
#        CB_STD_IBM,
#        CB_STD_MVS,
#        CB_STD_BS2000,
#        CB_STD_ACU,
#        CB_STD_RM
#        CB_STD_85,
#        CB_STD_2002,
#        CB_STD_2014,

# TO-DO: Allow configuring WHEN-COMPILED date format (see p. 22).

# Value: int
tab-width:			8  # not verified yet
text-column:			72 # TO-DO: add >>IMP MARGIN-R (see p. 50)
# Maximum word-length for COBOL words / Programmer defined words
# current max (COB_MAX_WORDLEN): 63
#word-length:			240
word-length:			63
# external-word-length:		30 # TO-DO: Add!
literal-length:			65535
numeric-literal-length:		30
pic-length:			30

# Default assign type
# Value: 'dynamic', 'external'
assign-clause:			dynamic # TO-DO: Verify

# If yes, file names are resolved at run time using
# environment variables.
# For example, given ASSIGN TO "DATAFILE", the file name will be
#  1. the value of environment variable 'DD_DATAFILE' or
#  2. the value of environment variable 'dd_DATAFILE' or
#  3. the value of environment variable 'DATAFILE' or
#  4. the literal "DATAFILE"
# If no, the value of the assign clause is the file name.
#
filename-mapping:		no

# Alternate formatting of numeric fields
pretty-display:			no

# Allow complex OCCURS DEPENDING ON
complex-odo:			yes

# Allow REDEFINES to other than last equal level number
indirect-redefines:		no

# Binary byte size - defines the allocated bytes according to PIC
# Value:         signed  unsigned  bytes
#                ------  --------  -----
# '2-4-8'        1 -  4    same        2
#                5 -  9    same        4
#               10 - 18    same        8
#
# '1-2-4-8'      1 -  2    same        1
#                3 -  4    same        2
#                5 -  9    same        4
#               10 - 18    same        8
#
# '1--8'         1 -  2    1 -  2      1
#                3 -  4    3 -  4      2
#                5 -  6    5 -  7      3
#                7 -  9    8 -  9      4
#               10 - 11   10 - 12      5
#               12 - 14   13 - 14      6
#               15 - 16   15 - 16      7
#               17 - 18   17 - 18      8
# TO-DO: What happens for 19 to 30 digits? RM-COBOL will allocate 16 bytes.
binary-size:			2-4-8

# Numeric truncation according to ANSI
binary-truncate:		yes

# Binary byte order
# Value: 'native', 'big-endian'
binary-byteorder:		big-endian

# Allow larger REDEFINES items
larger-redefines-ok:		yes # TO-DO: But only for 01 items (see p. 134)

# Allow certain syntax variations (eg. REDEFINES position)
relax-syntax-checks:		yes # TO-DO: For REDEFINES position, at least.

# Perform type OSVS - If yes, the exit point of any currently
# executing perform is recognized if reached.
perform-osvs:			no # TO-DO: Any potentially undefined (i.e. overlapping) PERFORMS prohibited (see p. 374)

# Compute intermediate decimal results like IBM OSVS
arithmetic-osvs:		no

# MOVE like IBM (mvc); left to right, byte by byte
move-ibm:			no

# If yes, linkage-section items remain allocated
# between invocations.
sticky-linkage:			yes

# If yes, allow non-matching level numbers
relax-level-hierarchy:		no

# If yes, evaluate constant expressions at compile time
constant-folding:		yes # not verified yet

# Allow Hex 'F' for NUMERIC test of signed PACKED DECIMAL field
hostsign:			no

# If yes, set WITH UPDATE clause as default for ACCEPT dest-item,
# except if WITH NO UPDATE clause is used
accept-update:			no

# If yes, set WITH AUTO clause as default for ACCEPT dest-item,
# except if WITH TAB clause is used
accept-auto:			yes

# If yes, DISPLAYs and ACCEPTs are, by default, done on the CRT (i.e., using
# curses).
console-is-crt:			no

# If yes, allow redefinition of the current program's name. This prevents its
# use in a prototype-format CALL/CANCEL statement.
program-name-redefinition:	no

# If yes, NO ECHO/NO-ECHO/OFF is the same as SECURE (hiding input with
# asterisks, not spaces).
no-echo-means-secure:		no

# If yes, the first item in a field screen ACCEPT/DISPLAY (e.g. DISPLAY x UPON
# CRT) is located after the previous ACCEPT/DISPLAY (as though LINE 0 COL 0 had
# been specified).
line-col-zero-default:		no

# If yes, then REPORT, COLUMN may have any of PLUS num, + num, or +num
# to define a relative column position
report-column-plus:		no

# If yes, DISPLAY SPACES acts as ERASE EOS, DISPLAY X"01" acts as ERASE EOL,
# DISPLAY X"02" acts as BLANK SCREEEN and DISPLAY X"07" acts as BELL. Note
# DISPLAY LOW-VALUE is excluded from this; it will always just position the
# cursor.
display-special-fig-consts:	no

# If yes, COMP-1 is a signed 16-bit integer and any PICTURE clause is ignored.
binary-comp-1:			yes

# auto-adjust to zero like MicroFocus does
move-non-numeric-lit-to-numeric-is-zero: no  # not verified yet

# If yes, implicitly define a variable for an ASSIGN DYNAMIC which does not
# match an existing data item.
implicit-assign-dynamic-var:	no

# What rules to apply to SCREEN SECTION items clauses
screen-section-rules:		rm

# Dialect features
# Value: 'ok', 'warning', 'archaic', 'obsolete', 'skip', 'ignore', 'error',
#        'unconformable'

alter-statement:			obsolete
comment-paragraphs:			obsolete
call-overflow:				ok
data-records-clause:			obsolete
debugging-mode:				ok
use-for-debugging:			obsolete
listing-statements:			skip	# may be a user-defined word
title-statement:			skip	# may be a user-defined word
entry-statement:			unconformable
goto-statement-without-name:		obsolete
label-records-clause:			obsolete
memory-size-clause:			obsolete
move-noninteger-to-alphanumeric:	error
move-figurative-constant-to-numeric:	ok	# not verified yet
move-figurative-space-to-numeric:	ok		# not verified yet
move-figurative-quote-to-numeric:	ok		# not verified yet
multiple-file-tape-clause:		obsolete
next-sentence-phrase:			archaic
odo-without-to:				unconformable
padding-character-clause:		ok
section-segments:			obsolete
stop-literal-statement:			obsolete
stop-identifier-statement:		ok
same-as-clause:				ok
synchronized-clause:			ok
sync-left-right:			ok
special-names-clause:			error	# not verified yet
top-level-occurs-clause:		unconformable
value-of-clause:			obsolete
numeric-boolean:			unconformable
hexadecimal-boolean:			unconformable
national-literals:			unconformable
hexadecimal-national-literals:		unconformable
national-character-literals:		unconformable
# TO-DO: Add separate config option for H"..." to be unsupported,numeric(rm/mf),non-numeric
acu-literals:			unconformable
hp-octal-literals:			unconformable
word-continuation:			ok
length-in-data-division:                no
depending-on-not-fixed:			warning 
occurs-max-length-without-subscript:	no 
not-exception-before-exception:		unconformable
accept-display-extensions:		ok
renames-uncommon-levels:		unconformable
symbolic-constant:			unconformable
constant-78:				ok
constant-01:				unconformable
perform-varying-without-by:		unconformable
reference-out-of-declaratives:		error  # TO-DO: error when referring to non-USE-statement DECLARATIVE sections
reference-bounds-check:			error
program-prototypes:			unconformable
call-convention-mnemonic:		unconformable
call-convention-linkage:		unconformable
numeric-value-for-edited-item:		error
incorrect-conf-sec-order:		error
define-constant-directive:		unconformable
free-redefines-position:		unconformable
records-mismatch-record-clause:	error
record-delimiter:			ok
sequential-delimiters:			ok
record-delim-with-fixed-recs:		ok
missing-statement:			warning		# not verified yet
zero-length-literals:			unconformable
xml-generate-extra-phrases:		unconformable
continue-after:				unconformable
goto-entry:				unconformable
binary-sync-clause:		ignore
nonnumeric-with-numeric-group-usage:	ok
assign-variable:			ok
assign-using-variable:			unconformable
assign-ext-dyn:				unconformable
assign-disk-from:			unconformable
align-record: 4
align-opt: no

# obsolete in COBOL85 and currently not available as dialect features:
# 1: All literal with numeric or numeric edited item
# 2: RERUN clause
# 3: KEY phrase of the DISABLE and ENABLE statements
# 4: ENTER statement
# 5: REVERSED phrase of the OPEN statement

# use fixed word list, synonyms and exceptions specified there
reserved-words:		RM