Menu

OpenVMS DCL language comments

2008-10-09
2012-11-13
  • Todd Maurer

    Todd Maurer - 2008-10-09

    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.

     
    • Airdrik

      Airdrik - 2008-10-14

      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.

       
      • Todd Maurer

        Todd Maurer - 2008-10-16

        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