Permalink
Browse files

Updated sample README.md

  • Loading branch information...
1 parent 60608af commit c4dd8bd44162c423febc026ff07594107b3f42de @ajlopez committed Aug 26, 2015
Showing with 27 additions and 0 deletions.
  1. +27 −0 samples/hello/README.md
View
@@ -23,5 +23,32 @@ hello.cob is simple
display "Hello, world".
```
+With the command line:
+```
+node compile hello.cob
+```
+
+The output is:
+```
+runtime.display("Hello, world");
+```
+
+The runtime is an object provided by CobolScript implementation.
+
CobolScript doesn't enforce to have all the common COBOL declarations: identification division, environment
division, data division and procedure division. You can write directly the commands.
+
+It supports a more complete program `hello2.cob`:
+```cobol
+ IDENTIFICATION DIVISION.
+ PROGRAM-ID. HELLO.
+ ENVIRONMENT DIVISION.
+ DATA DIVISION.
+ PROCEDURE DIVISION.
+
+ PROGRAM-BEGIN.
+ DISPLAY "Hello world".
+
+ PROGRAM-DONE.
+ STOP RUN.
+```

0 comments on commit c4dd8bd

Please sign in to comment.