hi, I am a Pike user and very interested in Pike languages design. I downloaded the source code of pike-v7.4.28, but did't find any design documents, such as the theory of Pike interpreter, the architecture of Pike construction, etc. BTW, I have some experiences of simple compiler design and compiler optimization. How can I begin to understand the Pike design and furthermore do some development to it? Any suggestion or help will be highly appreciated. Thanks.
Regards. David
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Nice to hear. Unfortunately there isn't much in the way of core docs, so you're pretty much left with investigating the source and the commentary in it. I have at least added a manifest for the files in the src directory now (in 7.5 - please check it out from the anonymous cvs) so that you'll get a little help in finding your way there.
Anyway, the compiler is fairly straightforward in principle (two pass, lexer, LALR parser, abstract syntax tree, tree optimizer, opcode generator, peephole optimizer) so provided you know standard compiler theory it's mostly a matter of learning where the stuff is and what it's called. The exceptions to that are mainly how the resolver works and what's done in the different passes, I suspect. You can always ask questions here; at least I will do my best to answer.
Do you have anything specific in mind that you want to do?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-11-12 10:06: Subject: Can I get detailed documents about Pike languages design
hi, I am a Pike user and very interested in Pike languages design. I downloaded the source code of pike-v7.4.28, but did't find any design documents, such as the theory of Pike interpreter, the architecture of Pike construction, etc. BTW, I have some experiences of simple compiler design and compiler optimization. How can I begin to understand the Pike design and furthermore do some development to it? Any suggestion or help will be highly appreciated. Thanks.
Regards. David
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
/ Brevbäraren
Hello,
Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Nice to hear. Unfortunately there isn't much in the way of core docs, so you're pretty much left with investigating the source and the commentary in it. I have at least added a manifest for the files in the src directory now (in 7.5 - please check it out from the anonymous cvs) so that you'll get a little help in finding your way there.
BTW a language design document was a whish feature during the latest Pike conference.
pike-devel@lists.lysator.liu.se