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.
In reply to Re^2: Parse grammar via RecDescent parser
by the_dark_lord
in thread Parse grammar via RecDescent parser
by the_dark_lord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |