Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #915

Should data filtering be done while building the parse tree or after the parse tree is built?

From "Costello, Roger L." <costello@mitre.org>
Newsgroups comp.compilers
Subject Should data filtering be done while building the parse tree or after the parse tree is built?
Date 2013-06-03 19:47 +0000
Organization Compilers Central
Message-ID <13-06-005@comp.compilers> (permalink)

Show all headers | View raw


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

Back to comp.compilers | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Should data filtering be done while building the parse tree or after the parse tree is built? "Costello, Roger L." <costello@mitre.org> - 2013-06-03 19:47 +0000
  Re: Should data filtering be done while building the parse tree or after the parse tree is built? Robert A Duff <bobduff@shell01.TheWorld.com> - 2013-06-06 12:10 -0400

csiph-web