Re: pyrex as Prothon standard extension language

Paul Prescod <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
I can't sign in. So I'll reply here for now.

====

I think it would be counter-productive to try to adapt Pyrex-as-code as 
opposed to the Pyrex-as-idea.

Here's how I would implement the idea if I were you:

  * write a single parser that generates abstract syntax trees. This is 
the right thing for a variety of reasons and I've been meaning to 
suggest it for a while.

  * expose the syntax trees to Prothon

  * in Prothon, write two compilers that both work from the same syntax 
trees.

     1. AST -> C

     2. AST -> Bytecode

  * reuse the underlying runtime as much as possible.

  Paul Prescod
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.