RSSAmplifier

The Boston Diaries

The precedence of the factorial operator

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Back when I added a factorial operator to my assembler , the code only applied it to numeric literals because the code that implemented it appeared in the same function as parsing a numeric literal. I only found the bug when I tried to apply a factorial to a subexpression in parenthesis, for example, -(2+1)!. The fix was easy, just move the code out of the numberic literal parsing routine rvalue()…

Read on boston.conman.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.