Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search


From: riusa:email:it at: 11-Feb-2002 11:27

Hi all... I'm studying the "parsing"... wow! it's very powerful! Now I have a little (!) problem: I have to parse a string like the following: SELECT SIZE MODIFIED FROM %/c/filetext.txt as result, I would produce the size and the last modification time of the file. I use the following code: rule: [ set action-1 ['select | 'insert | 'update | 'delete] set action-2 ['* | some ['size | 'modified] ] 'from set dir-1 file! ( if action-1 = 'select [ either action-2 = '* [ list-dir dir-1 ] [;either if action-2 = 'size [ print size? dir-1 ] if action-2 = 'modified [ print modified? dir-1 ] ] ] ) ] the problem is "action-2" holds either "size" or "modified" (not both) even if the user insert both of them. What can I do to iterate to discover all the data inserted (discover "size" and "modified" options, and print all the data that the user requested). -- Prendi GRATIS l'email universale che... risparmia: Sponsor: Obiettivo Laurea? il nostro Servizio Didattico ti aiuta a preparare gli esami per ogni facolta' italiana. Per informazioni Clicca qui: