in reply to Re^2: Parse grammar via RecDescent parser
in thread Parse grammar via RecDescent parser
Why not store both, the string and the filename?
file_exists: 'file(' filename ')' { $return = [ "-e $item{ 'filename' }", $item{ 'filename' +}] }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parse grammar via RecDescent parser
by the_dark_lord (Novice) on May 17, 2016 at 14:33 UTC | |
by Corion (Patriarch) on May 17, 2016 at 14:39 UTC |