Code generator for CLI based on CLD file

737 views Asked by At

Although programming using the CLI$ routines is not very hard, it would be nice if there were a code generator for the basic stuff based on the CLD file. Does anyone have something like that, or is there anyone interested in it?

2

There are 2 answers

2
HABO On

It sounds like you have used enough of the features of CLDs that it would be a project to write a TECO macro to massage the CLD into the corresponding MUMPS code. (Sorry, wrong language?) Even LIB$TPARSE, or its Alpha replacement, would take some time to wrangle. Sounds like you have a "boring job" ahead of you, or a co-op. (Named for the sound it makes when it hits the wall.) Or find a YACC guru or someone with facility at various other parsing tools and turn them loose.

1
Tom Wade On

There is a code generator of sorts at http://www.tomwade.eu/software/vmsarg.html

This is designed for when you're porting a C program onto VMS that is set up to use the typical terse and unfriendly qualifiers like

$ mumble -f -l foo.txt

that Unix loves. It generates code that allows the program to accept

$ mumble /fast /log=foo.txt

and translates it into the hieroglyphics that the program expects. Add CLD like functionality to the program with minimal C coding.