Skip to content

Commit

Permalink
Add COBOL (z/OS platform)
Browse files Browse the repository at this point in the history
  • Loading branch information
prochac committed Feb 28, 2020
1 parent 6bc63b3 commit 248d2e1
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 22 deletions.
147 changes: 127 additions & 20 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

A list and count of keywords in programming languages.

┌───────────────────────────────────────────────────────────────────────────────────────────┐
│ ...... │
│ ...... │
...... ...... │
...... ...... │
...... ...... ...... │
...... ...... ...... │
...... ...... ...... │
...... ...... ...... │
...... ...... ...... │
...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
..22.. ..25.. ..26.. ..32.. ..35.. ..36.. ..49.. ..51.. ..52.. ..54.. ..89.. .100.. .109.. │
│Lua Go Erlang C Python Ruby JS Java Rust Dart Swift C# C++ │
└───────────────────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────────────────────────
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... │
...... ...... ...... │
...... ...... ...... ...... │
...... ...... ...... ...... ...... ...... ...... │
22 ..25.. ..26.. ..32.. ..35.. ..36.. ..49.. ..51.. ..52.. ..54.. ..89.. .100.. .109.. .417.. │
│Lua Go Erlang C Python Ruby JS Java Rust Dart Swift C# C++ COBOL
└──────────────────────────────────────────────────────────────────────────────────────────────────

## Why does it matter?

Expand Down Expand Up @@ -237,3 +237,110 @@ virtual void volatile
wchar_t while xor
xor_eq

### COBOL (z/OS platform) (417 keywords)

ACCEPT ACCESS ADD ADDRESS
ADVANCING AFTER ALL ALPHABET
ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC
ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE
AND ANY APPLY ARE
AREA AREAS ASCENDING ASSIGN
AT AUTHOR BASIS BEFORE
BEGINNING BINARY BLANK BLOCK
BOTTOM BY CALL CANCEL
CBL CD CF CH
CHARACTER CHARACTERS CLASS CLASS-ID
CLOCK-UNITS CLOSE COBOL CODE
CODE-SET COLLATING COLUMN COM-REG
COMMA COMMON COMMUNICATION COMP
COMP-1 COMP-2 COMP-3 COMP-4
COMP-5 COMPUTATIONAL COMPUTATIONAL-1 COMPUTATIONAL-2
COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTE
CONFIGURATION CONTAINS CONTENT CONTINUE
CONTROL CONTROLS CONVERTING COPY
CORR CORRESPONDING COUNT CURRENCY
DATA DATE-COMPILED DATE-WRITTEN DAY
DAY-OF-WEEK DBCS DE DEBUG-CONTENTS
DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1
DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT
DECLARATIVES DELETE DELIMITED DELIMITER
DEPENDING DESCENDING DESTINATION DETAIL
DISPLAY DISPLAY-1 DIVIDE DIVISION
DOWN DUPLICATES DYNAMIC EGCS
EGI EJECT ELSE EMI
ENABLE END END-ADD END-CALL
END-COMPUTE END-DELETE END-DIVIDE END-EVALUATE
END-IF END-INVOKE END-MULTIPLY END-OF-PAGE
END-PERFORM END-READ END-RECEIVE END-RETURN
END-REWRITE END-SEARCH END-START END-STRING
END-SUBTRACT END-UNSTRING END-WRITE ENDING
ENTER ENTRY ENVIRONMENT EOP
EQUAL ERROR ESI EVALUATE
EVERY EXCEPTION EXIT EXTEND
EXTERNAL FALSE FD FILE
FILE-CONTROL FILLER FINAL FIRST
FOOTING FOR FROM FUNCTION
GENERATE GIVING GLOBAL GO
GOBACK GREATER GROUP HEADING
HIGH-VALUE HIGH-VALUES I-O I-O-CONTROL
ID IDENTIFICATION IF IN
INDEX INDEXED INDICATE INHERITS
INITIAL INITIALIZE INITIATE INPUT
INPUT-OUTPUT INSERT INSPECT INSTALLATION
INTO INVALID INVOKE IS
JUST JUSTIFIED KANJI KEY
LABEL LAST LEADING LEFT
LENGTH LESS LIMIT LIMITS
LINAGE LINAGE-COUNTER LINE LINE-COUNTER
LINES LINKAGE LOCAL-STORAGE LOCK
LOW-VALUE LOW-VALUES MEMORY MERGE
MESSAGE METACLASS METHOD METHOD-ID
MODE MODULES MORE-LABELS MOVE
MULTIPLE MULTIPLY NATIVE NATIVE_BINARY
NEGATIVE NEXT NO NOT
NULL NULLS NUMBER NUMERIC
NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS
OF OFF OMITTED ON
OPEN OPTIONAL OR ORDER
ORGANIZATION OTHER OUTPUT OVERFLOW
OVERRIDE PACKED-DECIMAL PADDING PAGE
PAGE-COUNTER PASSWORD PERFORM PF
PH PIC PICTURE PLUS
POINTER POSITION POSITIVE PRINTING
PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED
PROCESSING PROGRAM PROGRAM-ID PURGE
QUEUE QUOTE QUOTES RANDOM
RD READ READY RECEIVE
RECORD RECORDING RECORDS RECURSIVE
REDEFINES REEL REFERENCE REFERENCES
RELATIVE RELEASE RELOAD REMAINDER
REMOVAL RENAMES REPLACE REPLACING
REPORT REPORTING REPORTS REPOSITORY
RERUN RESERVE RESET RETURN
RETURN-CODE RETURNING REVERSED REWIND
REWRITE RF RH RIGHT
ROUNDED RUN SAME SD
SEARCH SECTION SECURITY SEGMENT
SEGMENT-LIMIT SELECT SELF SEND
SENTENCE SEPARATE SEQUENCE SEQUENTIAL
SERVICE SET SHIFT-IN SHIFT-OUT
SIGN SIZE SKIP1 SKIP2
SKIP3 SORT SORT-CONTROL SORT-CORE-SIZE
SORT-FILE-SIZE SORT-MERGE SORT-MESSAGE SORT-MODE-SIZE
SORT-RETURN SOURCE SOURCE-COMPUTER SPACE
SPACES SPECIAL-NAMES STANDARD STANDARD-1
STANDARD-2 START STATUS STOP
STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3
SUBTRACT SUM SUPER SUPPRESS
SYMBOLIC SYNC SYNCHRONIZED TABLE
TALLY TALLYING TAPE TERMINAL
TERMINATE TEST TEXT THAN
THEN THROUGH THRU TIME
TIMES TITLE TO TOP
TRACE TRAILING TRUE TYPE
UNIT UNSTRING UNTIL UP
UPON USAGE USE USING
VALUE VALUES VARYING WHEN
WHEN-COMPILED WITH WORDS WORKING-STORAGE
WRITE WRITE-ONLY ZERO ZEROES
ZEROS
4 changes: 2 additions & 2 deletions chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import "github.com/gizak/termui"

var labels = []string{"Lua", "Go", "Erlang", "C", "Python", "Ruby", "JS", "Java", "Rust", "Dart", "Swift", "C#", "C++"}
var values = []int{22, 25, 26, 32, 35, 36, 49, 51, 52, 54, 89, 100, 109}
var labels = []string{"Lua", "Go", "Erlang", "C", "Python", "Ruby", "JS", "Java", "Rust", "Dart", "Swift", "C#", "C++", "COBOL"}
var values = []int{22, 25, 26, 32, 35, 36, 49, 51, 52, 54, 89, 100, 109, 417}

func main() {
if err := termui.Init(); err != nil {
Expand Down

0 comments on commit 248d2e1

Please sign in to comment.