Community
    • Login

    Functionlist for Rapid (ABB robots)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 1 Posters 6.4k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors