Menu

#303 Add boolean class and category for USAGE BIT items / boolean literals

unclassified
accepted
nobody
4
2021-06-15
2018-04-12
No

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.

Related

Discussion: PIC 1
Discussion: 2002 Standard and BOOLEAN
Wish List: #235
Wish List: #402
Wish List: #454

Discussion

  • Simon Sobisch

    Simon Sobisch - 2018-04-17

    Parsing of USAGE BIT / PIC 1 added with [r2548].

     
  • Simon Sobisch

    Simon Sobisch - 2021-06-15
    • labels: COBOL 2002 --> COBOL 2002, BIT, boolean
     
  • Simon Sobisch

    Simon Sobisch - 2021-06-15

    For a testcase see the related (duplicate) FR.

     

Log in to post a comment.