Skip to main content

Questions tagged [postfix]

Filter by
Sorted by
Tagged with
0 votes
1 answer
240 views

I have a mail server setup with Postfix and Dovecot, and an application server setup with node.js. I have user credentials stored in my application server, and I want to use the same credentials for ...
penalosa's user avatar
  • 459
1 vote
1 answer
896 views

I'm trying to implement this right-to-left evaluation algorithm of a postfix expression but I can't seem to get it to work. for each token in the reversed postfix expression: if token is an ...
CervEd's user avatar
  • 121
5 votes
1 answer
2k views

I am trying to make a simple expression parser, in which users type an expression in infix notation (for example ln((1+2)(3-4))) to apply some calculations. To make this possible I need to tokenize ...
JulianSoto's user avatar
6 votes
2 answers
3k views

I have read at a few places, that Postfix is easier to evaluate & easier to convert to Code than Prefix. I understand that if you parse a prefix expression from left to right, you might not be ...
nikel's user avatar
  • 169
4 votes
2 answers
817 views

TL;DR is val name <- more readable than name val <-? I'm designing a semi-concatenative, postfix language. I haven't given much thought to the style in which variable are assigned, and now I ...
Conor O'Brien's user avatar
6 votes
2 answers
20k views

I understand how to convert infix to postfix/prefix but I do not understand why postfix or prefix expression are used in computer system? What is the advantage of postfix prefix over infix expression?...
Joydip Ghosh's user avatar
1 vote
7 answers
7k views

I'm reading Sedgewick's book on algorithms in C and I'm looking for an algorithm to evaluate postfix expressions (addition and multiplication only) without using a stack. I tried to implement one but ...
caisah's user avatar
  • 113
3 votes
8 answers
6k views

In college it is taught how you can do math problems which use the ++ or -- operators on some variable referenced in the equation such that the result of the equation would yield different results if ...
Kenneth's user avatar
  • 2,701
28 votes
11 answers
39k views

I've read that I should avoid the postfix increment operator because of performance reasons (in certain cases). But doesn't this affect code readability? In my opinion: for(int i = 0; i < 42; i++)...
Mateen Ulhaq's user avatar
57 votes
15 answers
7k views

Disclaimer: I know perfectly well the semantics of prefix and postfix increment. So please don't explain to me how they work. Reading questions on stack overflow, I cannot help but notice that ...
fredoverflow's user avatar
  • 6,954