home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,217 of 2,753   
   Robert A Duff to All   
   Re: Should data filtering be done while    
   06 Jun 13 12:10:05   
   
   From: bobduff@shell01.TheWorld.com   
      
   > Should I embed filtering rules into the grammar -- perform filtering as I   
   > build the parse tree?   
   >   
   > Or, should I build the parse tree and then have an application perform   
   > filtering on the parse tree?   
      
   I think the second approach is usually simpler.  Separation of concerns.   
   A parser is working with text (or a sequence of tokens, or whatever).   
   A syntax tree is an easier data structure to work with for doing   
   various transformations.   
      
   - Bob   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca