in reply to Re: Parse grammar via RecDescent parser
in thread Parse grammar via RecDescent parser
Hi
My grammar rule looks like the following:
Now I would want this rule to do two things: 1) return the string "-e < filename>" so that I can eval it later and check existence of that file 2) store the file names which I can retrieve laterfile_exists: 'file(' filename ')' { $return = "-e $item{ 'filename' } }
I can achieve only one of the two from the grammar that I have. I want to do both.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parse grammar via RecDescent parser
by Corion (Patriarch) on May 17, 2016 at 14:28 UTC | |
by the_dark_lord (Novice) on May 17, 2016 at 14:33 UTC | |
by Corion (Patriarch) on May 17, 2016 at 14:39 UTC | |
|
Re^3: Parse grammar via RecDescent parser
by Anonymous Monk on May 17, 2016 at 15:02 UTC | |
by the_dark_lord (Novice) on May 17, 2016 at 15:12 UTC | |
by Corion (Patriarch) on May 17, 2016 at 15:24 UTC | |
by the_dark_lord (Novice) on May 17, 2016 at 15:36 UTC |