Re: Rosetta code: help needed

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...
ed_davis said...

Already have. smile The RosettaCode tasks are necessarily abbreviated versions of that effort. I thought it would be interesting to see the approach in other languages. To get the ball rolling, I posted C and Python solutions for all the tasks. And Euphoria is an ideal language for doing data transformations, which is basically what a compiler boils down to (transform the source into tokens, transform the tokens into a parse tree, transform the parse tree into assembly code).

As the late Calvin Candie once said, you had my curiosity, but now you have my attention. Care to elaborate on the purpose of this compiler of yours?

-Greg

It was nothing special. A wrote a subset Pascal compiler that could self-compile. And then after that, I re-wrote the Pascal compiler in C, and kept changing the language, until I had a new language (sort of a cross between Pascal, Basic and C) that could compile itself. Again, it was nothing special - very sparse and primitive data type wise. And, they all compiled to byte code (as opposed to assembly code for a real machine). Compiling to a stack machine is pretty easy as compared to compiling to a real machine with registers.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu