How to implement Variable Substitution / Interpolation

2009-09-17 Thread Kyle Brandt
I am just learning flex / bison and I am writing my own shell with it. I am trying to figure out a good way to do variable interpolation. My initial approach to this was to have flex scan for something like ~ for my home directory, or $myVar , and then set what the yyval.string to what is returned

Re: How to implement Variable Substitution / Interpolation

2009-09-17 Thread Hans Aberg
On 17 Sep 2009, at 19:52, Kyle Brandt wrote: I am just learning flex / bison and I am writing my own shell with it. I am trying to figure out a good way to do variable interpolation. You might inquiry in the Usenet newsgroup comp.compilers, which can give better advice on general parsing