Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,143 of 2,753    |
|    Hans-Peter Diettrich to Lucas S. Silva    |
|    Re: Code generation from AST    |
|    11 Nov 07 05:49:41    |
      From: DrDiettrich1@aol.com              Lucas S. Silva wrote:              > The algorithm I am using doesn't deal very well with recursive       > expression such as:       >       > a = f.g.h(a , x.y.o(1,2) )              You can transform this statement (i.e. the AST) into Reverse Polish       Notation (RPN), like               1 2 x y . o . () a f g . h . () a =              Now the sequence of the required actions (machine code) should be quite       obvious.              DoDi              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca