methods to parse big foreign ascii-file?

holger krekel pyth at devel.trillke.net
Wed Jun 12 20:01:42 EDT 2002


Igor Stroh wrote:
> On Wed, 12 Jun 2002 18:05:51 +0200, "holger krekel"
> <pyth at devel.trillke.net> wrote:
> 
> > - come up with a grammar and let a parser do
> >   the hard work (which one?)
> 
> if the file is structured in a certain form, that is you can describe the
> data structure with a EBNF, then have a look at 'simpleparse' (I've lost
> the link, but google will certainly have some for you :) )...

thanks. This might be simple yet powerful enough for the task. I must
try hard to remember EBNF-grammars from my diploma exams, though :-)

> The idea behind optimistic concurrency control is surprisingly simple:
> just go ahead and do whatever you want to, without paying attention
> to what anybody else is doing. If there is a problem, worry about it
> later. Many politicians use this algorithm, too. (c) Andrew S. Tanenbaum

quite true though his Operating System oppinions were not :-)

    holger





More information about the Python-list mailing list