基于 CLD 文件的 CLI 代码生成器
尽管使用 CLI$ 例程进行编程并不是很困难,但如果有一个基于 CLD 文件的基本内容的代码生成器,那就太好了。有没有人有类似的东西,或者有人对此感兴趣?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://www.tomwade.eu/software/vmsarg.html 有一个代码生成器
这是专为将 C 程序移植到 VMS 上而设计的,该 VMS 设置为使用典型的简洁且不友好的限定符,例如
$ mumble -f -l foo.txt
Unix 喜欢的 。它生成的代码允许程序接受
$ mumble /fast /log=foo.txt
并将其转换为程序期望的象形文字。使用最少的 C 编码将类似 CLD 的功能添加到程序中。
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.
听起来您已经使用了足够多的 CLD 功能,因此编写一个 TECO 宏以将 CLD 转换为相应的 MUMPS 代码将是一个项目。 (抱歉,语言错误?)即使是 LIB$TPARSE 或其 Alpha 替代品,也需要一些时间来争论。听起来你面前有一份“无聊的工作”,或者是一份合作社。 (以它撞击墙壁时发出的声音命名。)或者找到 YACC 专家或精通各种其他解析工具的人并将其释放。
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.