Community
    • Login

    Functionlist for Rapid (ABB robots)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 1 Posters 5.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Anders SandbergA
      Anders Sandberg
      last edited by

      Hi
      Can anyone explain how to write function in a parser and the nameExpr and so on?

      Have got so far as i get the list but it only says PROC on every row.
      What i want is to find PROC | FUNC | TRAP in a .mod file.
      The program looks like this simplyfied.
      PROC routinename()
      <code>
      ENDPROC

      PROC routinename2()
      <code>
      ENDPROC

      TRAP trapname()
      <code>
      ENDTRAP

      FUNC functionname()
      <code>
      ENDFUNC

      and so on. There is other rows to but it is theese i want to find. I think it is simple if i only knew how to write the correct search line. So does anyone want to help me?

      //Anders S

      1 Reply Last reply Reply Quote 0
      • Anders SandbergA
        Anders Sandberg
        last edited by

        Forgot to mention I want the list to show “PROC routinename” or only “routinname”, with or without brackets. In Function there is variables in the brackets prefer not to show that in the functionlist.

        1 Reply Last reply Reply Quote 0
        • Anders SandbergA
          Anders Sandberg
          last edited by

          Hi again.

          Fixed it myself. Just in case anyone else want to know how.
          I had this row added to associationtable:
          <association userDefinedLangName=“RAPID_ABB” id=“rapid_function”/>

          And my parsercode looks like this know when it works the way i want it to:
          <parser id=“rapid_function” displayName=“ABB Rapid” commentExpr=“!”>
          <function
          mainExpr=“^[\t ]((PROC|FUNC|TRAP)[\s][a-zA-Z]\w)”>
          </function>
          </parser>

          Maybe it can help someone else.

          //Anders S

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors