Trial versions of the Cocktail Toolbox and demo versions of parsers for many languages are available for downloading.
Cocktail Toolbox
Trial versions of the Cocktail Toolbox are available for Microsoft Windows, Linux, Solaris and AIX. They work for 60 days and require a licence file. Please contact CoCoLab for a working licence file.
cocktail-0810-windows-x86-32.exe | An executable version of Cocktail for Microsoft Windows |
cocktail-0810-linux-x86-32.sh | An executable version of Cocktail for Linux |
cocktail-0810-solaris-x86-32.sh | An executable version of Cocktail for Solaris on x86 platforms |
cocktail-0810-solaris-sparc-32.sh | An executable version of Cocktail for Solaris on Sparc platforms |
cocktail-0810-aix-power-32.sh | An executable version of Cocktail for AIX |
reuse.zip | The source code of the Cocktail library reuse |
examples.zip | Example grammars for Cocktail |
README | The README file for Cocktail (Unix format) |
README.TXT | The README file for Cocktail (Windows format) |
ChangeLog | Description of the change history of Cocktail |
Parsers
Demo versions of the parsers listed below are available for Windows and in part for Linux. Parsers for other languages can be provided upon request. Please find below more information about the parsers and how to run the demos.
cpp-win32.zip | An executable C++ parser for Windows |
cobol-win32.zip | An executable COBOL parser for Windows |
pl1-win32.zip | An executable PL/I parser for Windows |
sql-win32.zip | An executable SQL parser for Windows |
cics-win32.zip | An executable CICS parser for Windows |
jcl-win32.zip | An executable JCL parser for Windows |
nat-win32.zip | An executable NATURAL parser for Windows |
vb-win32.zip | An executable Visual Basic parser for Windows |
java-win32.zip | An executable Java parser for Windows |
xml-win32.zip | An executable XML parser for Windows |
powerscript-win32.zip | An executable PowerBuilder (PowerScript) parser for Windows |
delphi-win32.zip | An executable Delphi parser for Windows |
cs-win32.zip | An executable C# parser for Windows |
fortran-win32.zip | An executable Fortran parser for Windows (free format) |
vbscript-win32.zip | An executable VBScript parser for Windows |
shell-win32.zip | An executable Unix Shell parser for Windows |
asp-win32.zip | An executable ASP Classic parser for Windows |
dll-win32.zip | Dynamic Linking Libraries (DLLs) for Microsoft Windows |
Tcl-8.3.2-win-x86-32.exe | A binary distribution of Tcl/Tk 8.3.2 for Microsoft Windows |
Demo Parsers for Windows
The demo parsers for C++, COBOL, PL/I, SQL, CICS, JCL, NATURAL, Visual Basic, Java, XML, PowerBuilder (PowerScript), Delphi, C#, Fortran, VBScript and Unix Shell are executables for Microsoft Windows. They are MDI applications. After starting a parser please open a source file using the open menue button and the file select dialog box. The parsers build a syntax tree which can be visualized graphically. The graphic tree browsers require the package Tcl/Tk 8.3.2. The parsers require the DLL's mfc42.dll and msvcrt.dll which can be downloaded if needed. The files prog.* are example input programs for the parsers. The file Tree.tcl is required by the graphic tree browsers. The C++ parser contains a C++ preprocesser - however the demo version does not have options for the specification of directories of include files. The COBOL and PL/I parsers include auxiliary parsers for processing embedded SQL and CICS statements. For the EXEC statements nodes of type s_execute and exec_statement are created in the syntax tree. After clicking on the attribute named tree in the attribute window of these nodes the trees built for the embedded statements will be displayed. The full versions of the parsers understand many useful options which are not available in the demo versions.
Demo Parsers for Linux
The demo parser for C++ is an executable for Linux which is linked statically. It is a command line application. The command cpp-parse -h lists the available options. The parser builds a syntax tree which can be visualized graphically using the option -g. The graphic tree browser is implemented with the package Tcl/Tk. The file prog.cpp is an example input program for the parser. The file Tree.tcl is required by the graphic tree browser. It has to be in the working directory. The C++ parser accepts only input which has been preprocessed. Call the parser with commands such as for example: cpp-parse -g prog.cpp .