We are trying to add more custom rules through Plugin in our Sonar Profile for analysis of Cobol programs.
As a first step, to understand the AST, I started using SSLR tool kit. I observed that no tokens are used to represent the COPY statements. Is there any specific reason for this? I have a requirement to collect the copybooks used and do some validation on them. Since no tokens are representing COPY statements, should I go for function calls like “getCopyBookOriginalLine”.