aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-22 04:21:33 -0700
committerFuwn <[email protected]>2022-05-22 04:21:33 -0700
commit16cb282ad266674de090cc5c6439944e242074c5 (patch)
treee067967f45c880053fe3063642f0167689c32ddf /examples
downloadrules_cobol-main.tar.xz
rules_cobol-main.zip
feat(0.1.0): initial releaseHEAD0.1.0main
Diffstat (limited to 'examples')
-rw-r--r--examples/BUILD8
-rw-r--r--examples/HELLO_WORLD.CBL8
2 files changed, 16 insertions, 0 deletions
diff --git a/examples/BUILD b/examples/BUILD
new file mode 100644
index 0000000..e90e7fa
--- /dev/null
+++ b/examples/BUILD
@@ -0,0 +1,8 @@
+load("//cobol:def.bzl", "cobol_binary")
+
+cobol_binary(
+ name = "hello_world",
+ srcs = [
+ "HELLO_WORLD.CBL",
+ ],
+)
diff --git a/examples/HELLO_WORLD.CBL b/examples/HELLO_WORLD.CBL
new file mode 100644
index 0000000..704c58a
--- /dev/null
+++ b/examples/HELLO_WORLD.CBL
@@ -0,0 +1,8 @@
+ IDENTIFICATION DIVISION.
+ PROGRAM-ID. HELLO_WORLD.
+ DATA DIVISION.
+ WORKING-STORAGE SECTION.
+ 77 FOO PIC 99 VALUE 43.
+ PROCEDURE DIVISION.
+ DISPLAY "Hello, World!" FOO
+ STOP RUN.