Ulrich Wolffgang

Results 26 comments of Ulrich Wolffgang

Hi @panky1998 , this is correct, those are the ANTLR [ParserRuleContext](https://www.antlr.org/api/Java/org/antlr/v4/runtime/ParserRuleContext.html) elements. In Eclipse debugger you can introspect them. You can use them to navigate to children, to the parent...

To serialize the AST, this would be a ANTLR topic, discussed here https://github.com/antlr/antlr4/discussions/3772 with some code here https://github.com/antlr/antlr4/pull/3773 To serialize the ASG, one could try to pass the resulting ASG...

https://github.com/aws-samples/aws-mainframe-modernization-carddemo/blob/main/app/cbl/CBACT02C.cbl#L1 is not line format TANDEM (which would start with line indicator in column 1), but seems to be line format FIXED. Please consult https://github.com/uwol/proleap-cobol-parser/blob/a43c8c4cde99e25608f0710e67156e16057a68d3/src/main/java/io/proleap/cobol/preprocessor/CobolPreprocessor.java#L19 Best Ulrich

Hello @sundar-sarvam , so in my understanding you want to navigate in the ASG (1) from a called Paragraph to all ProcedureCalls calling the Paragraph, and then (2) from each...

Hi, - regarding calls, here you find a test: [CallStatementTest.java](https://github.com/uwol/proleap-cobol-parser/blob/main/src/test/java/io/proleap/cobol/asg/procedure/call/CallStatementTest.java) - regarding line numbers, `ASGElement.getCtx()` returns the `ParserRuleContext`, i.e. the ANTLR AST element for every ASG element. ANTLR might offer...

Hello @sundar7D0 , yes, in the meantime we published the pattern analysis source code. You can find it in this repo https://github.com/proleap/proleap-cobol - The rules are here https://github.com/proleap/proleap-cobol/tree/main/proleap-cobol-analysis/src/main/java/io/proleap/cobol/analysis/issues/rules - The...

No, this is not possible with the code mentioned. Instead the code mentioned provides rules, which analyze the sorce code for patterns. Such functionality is not implemented based on ProLeap,...

The lowest level of granularity is an individual token of the parser. So, yes, branches of IF statements are definitely contained in the ASG.

Hi, no, unfortunately I do not know such tools. I think it would be possible to rebuild the tool from the paper as the complete information is contained in the...

Hi @pradip827 , the resulting COBOL code requires the Maven module / code from proleap-cobol-commons contained in this repository. However, please note that the generated Java code only is directly...