Here for eternal shame. Contains only "+" and "print" - nothing else, no functions are definable. Here for the shame in particular of those who gave it 125 stars, without having tried it for a second.
A Common Lisp Interpreter Built in COBOL.
This is a small project built by a student at the Recurse Center to express a love for COBOL and better understand it.
Due to COBOL's lack of functions and recursion, the recursion required for Lisp is built from the ground up using file processing. Also, due to the lack of a widely supported debugger, a system logger was also implemented.
Please note that Cisp is currently only actively developed for Windows. *Nix users may experience issues.
All features are currently in development. This is a list of what is to come.
The README much like the entire project is in current development.
- Make a subdirectory for your lisp file.
mkdir test\helloworld
- Create a new file
helloworld.lisp
in your subdirectory containing the following:
(print "HelloWorld!")
- To run Cisp cd into the bin (Note that you must cd in)
cd bin
- Run Cisp
cisp.exe ..\test\helloworld\helloworld.lisp
Currently the COBOL source files are located in the root directory.
- bin - Contains all necessary *.dll's (windows users) for those who want to play with CISP without changing the code. This is due to the fact that so few people have COBOL compilers.
- logs - Contains the log file generated by the system.
- test - Contains all test files organized by subject.
- cisp.cbl - The main COBOL program.
- cisp-error.cbl - The Error System in the program. It will "throw" errors when called.
- lisp.cbl - Responsible for executing the lisp program.
- logger.cbl - The Logging System in the program. It will log events in the system when called.
- recursion.cbl - Handles recursion as requested from lisp.cbl.
- tokenizer.cbl - Responsible for tokenizing the lisp file given to execute.
The easiest way I have found to compile COBOL is GNU's COBOL compilier. For those who prefer IDE's I have found Open COBOL IDE to be very helpful.
To run all tests in the project, double click bin\cisp.bat
To run a single test:
cd bin
cisp.exe ..\test\test_subdirectory\test_name.lisp
- Create a directory in
test\
to create another test category. - In your subdirectory create a lisp file.
cd bin
cisp.exe ..\test\test_subdirectory\test_name.lisp
Instructions yet to come. The author is a window's user, and *nix systems are not currently supported.
A high level overview is to compile the project and run the executable in the bin folder.
Coming soon.
Coming soon.