While cobc/tree.h has
CB_CLASS_BOOLEAN, /* 3 */
and
CB_CATEGORY_BOOLEAN, /* 4 */
cobc actually doesn not use these internal as it should be - they are only used for internal boolean yes/no values. Boolean literals for example are handled as numberic class and category in scanner.l.
Relates to bitwise operations [feature-requests:#235] - for not numeric items.
Discussion: PIC 1
Discussion: 2002 Standard and BOOLEAN
Wish List: #235
Wish List: #402
Wish List: #454
Parsing of
USAGE BIT
/PIC 1
added with [r2548].For a testcase see the related (duplicate) FR.