• Login
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.
  • A
    Anders Sandberg
    last edited by Oct 27, 2015, 7:15 AM

    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
    • A
      Anders Sandberg
      last edited by Oct 27, 2015, 4:01 PM

      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
      • A
        Anders Sandberg
        last edited by Oct 28, 2015, 5:52 PM

        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
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors