uwol / proleap-cobol Goto Github PK
View Code? Open in Web Editor NEWProLeap COBOL • Analyze, Execute & Transform COBOL
License: GNU Affero General Public License v3.0
ProLeap COBOL • Analyze, Execute & Transform COBOL
License: GNU Affero General Public License v3.0
Hi,
Before I begin with my issue , I would like to mention that I am fairly new to the Java space.
I've been following the steps you provided to simulate the Cobol to Java functionality similar to https://www.proleap.io/.
When I clone this project, I get the Missing artifact io.github.uwol:proleap-cobol-parser:jar:4.0.0 in the in all packages except 'proleap-cobol-api'. Also the test cases for the proleap-cobol-parser fail when I try to clean install.
If there is any document you could provide detailing the steps I could follow to achieve my objective would greatly help.
Hello!
I am new to Cobol, but according to Cobol examples and specifications I found, printMultiplyRegular() in MultiplyStatementRule contains a bug. It treats the first operand as the result and "MULTIPLY 42 BY B" is transformed into "BigDecimal.valueOf(42) = BigDecimal.valueOf(42).multiply(b);", which makes no sense (especially when the first argument is a literal).
This replacement will fix it:
package io.proleap.cobol.transform.java.rules.lang.procedure.multiply;
// ...
public class MultiplyStatementRule extends CobolTransformRule<MultiplyStatementContext, MultiplyStatement> {
// ...
protected void printMultiplyRegular(MultiplyStatement multiplyStatement, RuleContext rc) {
ByPhrase regular = multiplyStatement.getByPhrase();
for (ByOperand regularOperand : regular.getByOperands()) {
rc.visit(regularOperand.getOperandCall().getCtx());
rc.p(" = ");
rc.visit(regularOperand.getOperandCall().getCtx());
rc.p(".multiply(");
rc.visit(multiplyStatement.getOperandValueStmt().getCtx());
rc.p(");");
rc.pNl(regular);
}
}
}
io.micronaut.context.exceptions.NoSuchBeanException: No bean of type [io.proleap.cobol.service.transform.cobol.CobolTextTransformService] exists. Make sure the bean is not disabled by bean requirements (enable trace logging for 'io.micronaut.context.condition' to check) and if the bean is enabled then ensure the class is declared a bean and annotation processing is enabled (for Java and Kotlin the 'micronaut-inject-java' dependency should be configured as an annotation processor).
Hi team thank you so much your cobol to java transformer is so helpful now can you help me that how can i run the converted file. do i have to add you package is yes can you help me with the step.
if no then how can i execute me java file?
thank you again !!!!!!
When I try to do $ mvn clean install
, I got the following.
401 Unauthorized
{"errors":[{"code":"UNAUTHORIZED","message":"You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication"}]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.