Re: plugin compiler

Martin Bayer <[email protected]>
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
Georg Seidel wrote:
> After I have looked at many lexer and parser generators for python, I 
> came to the conclusion that it is best to write the lexer and parser by 
> hand.
> 
> Reason: All generators I found lacked one important feature. They could 
> not generate a standalone parser, i.e. a python script that can be 
> executed on every box that has python installed.

Python for its own is a questionable dependency if it is used only in 
the buildsystem. Adding a (non common?) parser library as dependency is 
not good.

> Each generator requires a special library to be installed. Since 
> everyone who wants to compile GePhex will need the parser, this would be 
> a significant annoyance for many people.

The spec compiler is only needed by module developers, cause the 
generated files could be added to the dist. If we change the buildsystem 
this way the python interpreter will be just a build-dist dependency.

> My current plan is to write a lexer and a parser for our simple spec 
> language by hand and in pyhton.

Following the g++ path :)

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.