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 905 of 2,753    |
|    Mr.E to All    |
|    Re: fully parenthesized expression?    |
|    10 Mar 07 21:35:11    |
   
   From: mr.waverlye@verizon.net   
      
   > The variant with queue (pseudo-code):   
   >   
   > Stack >> Right;   
   > Stack >> Left;   
   > Stack << Left * Right;   
   > '(' >> Qutput; // The left side of the output queue accessed   
   > Output << '*';   
   > Output << Right;   
   > Output << ')';   
   >   
   > Once you finished, you can print Output.   
   >   
   > The variant with source locations:   
   >   
   > Stack >> Right;   
   > Stack >> Left;   
   > Stack <<   
   > Operand   
   > ( Left.Value * Right.Value,   
   > Left.Location + Right.Location + Location_of_Multiply   
   > );   
   >   
   [SNIP]   
      
   I believe I understand now. Hopefully this weekend I will try it out.   
      
   Thank you very much,   
      
      
   W.   
      
   --- 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