add COBOL language support

This commit is contained in:
Michael Mullis
2013-05-30 01:17:07 +00:00
parent 912f635d2a
commit 420594874a
5 changed files with 33 additions and 0 deletions

View File

@@ -235,6 +235,15 @@ Clojure:
filenames:
- riemann.config
COBOL:
type: programming
primary_extension: .cob
extensions:
- .cbl
- .cpy
- .cobol
- .ccp
CoffeeScript:
type: programming
ace_mode: coffee

View File

@@ -0,0 +1,5 @@
program-id. hello.
procedure division.
display "Hello, World!".
stop run.

View File

@@ -0,0 +1,6 @@
IDENTIFICATION DIVISION.
PROGRAM-ID. hello.
PROCEDURE DIVISION.
DISPLAY "Hello World, yet again.".
STOP RUN.

View File

@@ -0,0 +1,6 @@
IDENTIFICATION DIVISION.
PROGRAM-ID. hello.
PROCEDURE DIVISION.
DISPLAY "Hello World!".
STOP RUN.

7
samples/COBOL/simple.cpy Normal file
View File

@@ -0,0 +1,7 @@
01 COBOL-TEST-RECORD.
05 COBOL-TEST-USAGES.
10 COBOL-4-COMP PIC S9(4) COMP.
10 COBOL-8-COMP PIC S9(8) COMP.
10 COBOL-9-COMP PIC S9(9) COMP.
10 COBOL-4-COMP2 PIC S9(4) COMP-2.
10 COBOL-7-COMP2 PIC 9(7) COMP-2.