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,215 of 2,753   
   Costello, Roger L. to All   
   Should data filtering be done while buil   
   03 Jun 13 19:47:07   
   
   From: costello@mitre.org   
      
   Hi Folks,   
      
   I am building a parser to parse some data.   
      
   I want to filter some of the data.   
      
   For example, I want to "fuzz" latitude and longitude values to contain just   
   two digits to the right of the decimal point.   
      
       Fuzz this latitude value:   
             42.3583   
       to this:   
            42.35   
      
   When should filtering be done?   
      
   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?   
      
   /Roger   
      
   --- 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