Functionlist for Rapid (ABB robots)
-
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>
ENDPROCPROC routinename2()
<code>
ENDPROCTRAP trapname()
<code>
ENDTRAPFUNC functionname()
<code>
ENDFUNCand 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
-
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.
-
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
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