[antlr-interest] How can I define a token from a directory content ?
Hélène Chagnot
helene.chagnot at gmail.com
Fri Sep 19 06:15:23 PDT 2008
Hi,
I'm currently using Antlr3 to develop a command line tool.
One of this command consists in executing the content of a command file. The
associated rule will look like this:
execFileRule: EXEC FILENAME;
My problem is that possible values for "FILENAME" can not be given in a
static manner (i.e.: FILENAME: "file1.txt" | "file2.txt" | "file3.txt";), as
they depend on the content of a specific directory at the moment the command
is entered.
How can I manage this ?
Thanks,
Helene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080919/60b08d76/attachment.html
More information about the antlr-interest
mailing list