Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a COBOL template #47

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Add a COBOL template #47

merged 1 commit into from
Jun 6, 2024

Conversation

chipschipschips
Copy link
Contributor

@chipschipschips chipschipschips commented May 31, 2024

Fixes #46

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to README are included in PR

Tested with cobc (GnuCOBOL) 3.2.0 (eg: brew install gnu-cobol)

$ cat ./cobol.cob
#!/usr/bin/env scriptisto
      * scriptisto-begin
      * script_src: cobol.cob
      * build_cmd: cobc -x -o script ./cobol.cob
      * replace_shebang_with: '      * '
      * scriptisto-end
       IDENTIFICATION DIVISION.
       PROGRAM-ID. hello.
       PROCEDURE DIVISION.
       DISPLAY "Hello, COBOL!".
       STOP RUN.

$ ./cobol.cob
Hello, COBOL!
$

@igor-petruk igor-petruk merged commit 20f0656 into igor-petruk:master Jun 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for COBOL
2 participants