home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5658 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.8 KB  |  34 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!destroyer!ncar!csn!cherokee!lookout.it.uswc.uswest.com!rray
  3. From: rray@lookout.it.uswc.uswest.com (Randy J. Ray)
  4. Subject: Yet Another Silly Question (YASQ?)
  5. Message-ID: <1992Sep1.171742.12004@advtech.uswest.com>
  6. Sender: rray@snakepit (Randy J. Ray)
  7. Nntp-Posting-Host: snakepit.it.uswc.uswest.com
  8. Organization: US WEST Communications, Inc. -- Denver, CO
  9. Date: Tue, 1 Sep 1992 17:17:42 GMT
  10. Lines: 22
  11.  
  12. I have heard it said that nothing can parse perl except perl. Well, I am having
  13. trouble even with that approach!
  14.  
  15. I am tasked with writing a small (at least, it started small) script to check
  16. the validity of subroutine calls, specifically checking argument number and
  17. type to the actually declaration. At this stage, I am still determining what
  18. rules, or more specifically, execeptions to use in the actual test. That is not
  19. the problem. Neither is extracting the subroutine definitions. That part is
  20. done. I am having trouble parsing out the subroutine calls themselves. I need
  21. to be able to extract the call, and it's list of parameters. Because of the
  22. possibility of passing the result of a subroutine call, it might be a recursive
  23. solution. Then there's the problem of passing the results of operations, like
  24. "keys" or "sort" or others. Has anyone done anything like this? I looked
  25. through the perldb.pl code, hoping to find some parsing clues, but to no avail.
  26.  
  27. Randy
  28. -- 
  29. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. Randy J. Ray -- U S WEST IT/CSD         rray@{lookout,uswat}.it.uswc.uswest.com
  31. I'd rather talk religion with Charles Manson than discuss ethics with Congress.
  32.      -me                                                   Phone: (303)595-2852
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34.