Re: User definable operators again

Norman Ramsey <>
10 Jul 1998 20:54:19 -0400

          From comp.compilers

Related articles
User definable operators again (Robert Zierer) (1998-07-08)
Re: User definable operators again (Norman Ramsey) (1998-07-10)
| List of all articles for this month |

From: Norman Ramsey <>
Newsgroups: comp.compilers
Date: 10 Jul 1998 20:54:19 -0400
Organization: University of Virginia Computer Science
References: 98-07-065
Keywords: syntax, parse

Robert Zierer <> wrote:
>Does anyone have information (implementations, algorithms) on how to
>scann, parse and transform to AST an (mathematical,...) expression
>(e.g. 'a+b*-c++ - d+e') where the operators (all forms: prefix, postfix,
>binary infix, brackets AND ternary) can be defined (with name,
>precedence and associativity) at compiletime.

My paper ``Unparsing Expressions with Prefix and Postfix Operators''
shows how to do this in an appendix. You can see a preprint at; it's
supposed to be published in Software---Practice and Experience, but I
don't know when.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.