Today, I started a new project at my Github account:
https://github.com/ajlopez/CobolScript
It’s a compiler from COBOL to JavaScript. It’s work in progress, but the Hello, world is running:
https://github.com/ajlopez/CobolScript/blob/master/samples/hello/hello.cobs
DISPLAY "HELLO, WORLD".
You can run it, executing:
node run hello.cobs
A more complete code:
https://github.com/ajlopez/CobolScript/blob/master/samples/hellopgm/hello.cob
IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. AUTHOR. A.J.LOPEZ. INSTALLATION. TEST. DATE-WRITTEN. 2012-12-22. DATE-COMPILED. 2012-12-22. ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. NODE. OBJECT-COMPUTER. NODE. DATA DIVISION. PROCEDURE DIVISION. DISPLAY "HELLO, WORLD".
Let’s run it executing:
node run hello.cob
My work was written using TDD (Test-Driven Development). I shoudl add a lot of things: picture support, working storage section, file section, and maybe, SQL execute commands. But it’s a good starting point. It can run on browser and on Node.js.
Keep tuned!
Angel “Java” Lopez
Cool! Your rock @ajlopez!
Comment by garduino (@garduino) — December 22, 2012 @ 9:52 pm
[...] Previous Post [...]
Pingback by CobolScript (2) First Factorial Function « Angel ”Java” Lopez on Blog — December 24, 2012 @ 5:03 pm