direnv allow
Run ./scripts/dev.sh to install the necessary prerequistes
Run the given example code export COBOL_REKT_LOCATION=
java -jar smojol-cli/target/smojol-cli.jar run test-exp.cbl hello.cbl --commands="WRITE_FLOW_AST INJECT_INTO_NEO4J EXPORT_TO_GRAPHML WRITE_RAW_AST DRAW_FLOWCHART WRITE_CFG" --srcDir $COBOL_REKT_LOCATION/smojol-test-code --copyBooksDir $COBOL_REKT_LOCATION/smojol-test-code --dialectJarPath ./che-che4z-lsp-for-cobol-integration/server/dialect-idms/target/dialect-idms.jar --reportDir out/report --generation=PROGRAM
Run card demo for CBACT01C.cbl export CARD_DEMO_LOCATION=
java -jar smojol-cli/target/smojol-cli.jar run CBACT01C.cbl --commands="WRITE_FLOW_AST INJECT_INTO_NEO4J EXPORT_TO_GRAPHML WRITE_RAW_AST DRAW_FLOWCHART WRITE_CFG" --srcDir $CARD_DEMO_LOCATION/app/cbl --copyBooksDir $CARD_DEMO_LOCATION/app/cpy --dialectJarPath ./che-che4z-lsp-for-cobol-integration/server/dialect-idms/target/dialect-idms.jar --reportDir out/report --generation=PROGRAM
Card demo analysis for all source
java -jar smojol-cli/target/smojol-cli.jar run $(ls $CARD_DEMO_LOCATION/app/cbl/*.cbl | xargs basename) --commands="WRITE_FLOW_AST INJECT_INTO_NEO4J EXPORT_TO_GRAPHML WRITE_RAW_AST DRAW_FLOWCHART WRITE_CFG" --srcDir $CARD_DEMO_LOCATION/app/cbl --copyBooksDir $CARD_DEMO_LOCATION/app/cpy --dialectJarPath ./che-che4z-lsp-for-cobol-integration/server/dialect-idms/target/dialect-idms.jar --reportDir out/report --generation=PROGRAM
Delete all nodes from the graph
MATCH (n)
DETACH DELETE n
View the schema
CALL db.schema.visualization();