Re: Parse and validate a comma separated list of strings

2011-09-09 Thread Hans Aberg
On 8 Sep 2011, at 05:04, Matt Friedman wrote: > My goal is to parse a comma separated list and validate the values > that I find therein. I don't have a problem parsing the list. This is > fairly straightforward. > > What I would like to do in addition to parsing the list is to validate > that ea

Re: Parse and validate a comma separated list of strings

2011-09-09 Thread John P. Hartmann
Welcome, Matt! Scanning strings is something for flex to do, if the strings are constant. If you wish to change the set of valid strings dynamically or "often", you'll need to add them to a dictionary and search that dictionary in bison. Constructing a dictionary is simple with stuff like tsearc

Parse and validate a comma separated list of strings

2011-09-09 Thread Matt Friedman
Hi, I'm new to bison and this list so forgive me if I'm asking something that has been asked before. I've done quite a bit of reading and searching and haven't found the answer yet. My goal is to parse a comma separated list and validate the values that I find therein. I don't have a problem pars