I'm looking to create a user defined languange for OpenVMS' DCL command language. The first hurdle I've found is defining comments. In DCL the parser treats everything after the first exclamation point "!" as a comment. I can't get the language definition to correctly recognize the following at comments
!comment
$! commend
$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!everything after "$" is comment.
$ SHOW TIME !comment
$ DIRECTORY !! comment
And so forth.
Also if anyone has a DCL definition I'd love to see it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to make sure that the '!' is not one of the operators, and that 'Treat keyword as symbol' is checked under the Comment Line portion of the dialog.
If that doesn't work, you might try playing around with different things to see if there is something else which works.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm looking to create a user defined languange for OpenVMS' DCL command language. The first hurdle I've found is defining comments. In DCL the parser treats everything after the first exclamation point "!" as a comment. I can't get the language definition to correctly recognize the following at comments
!comment
$! commend
$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!everything after "$" is comment.
$ SHOW TIME !comment
$ DIRECTORY !! comment
And so forth.
Also if anyone has a DCL definition I'd love to see it.
You need to make sure that the '!' is not one of the operators, and that 'Treat keyword as symbol' is checked under the Comment Line portion of the dialog.
If that doesn't work, you might try playing around with different things to see if there is something else which works.
Thank airdrik,
Okay, DCL comments are working better. I did as airdrik suggested plus two additional things.
- Checked "Treat Keyword as symbol" on "Comment & Number" tab. This solved the problem were !!! wouldn't be treated as a comment.
- Made sure the "!" wasn't an operator on the "Operators" tab.
- Added "$" as an operator. This made sure that the common occurrence of "$!" would be treated as a commnet.
- As a matter of personal preference I changed the "Font Name" field on the "Comments & Numbers" tab to "Courier New".
Todd