[antlr-interest] Help w/ Function Overloading

Prashant Deva prashant.deva at gmail.com
Tue Aug 9 03:06:03 PDT 2005

Exactly what kind of a suggestion you need.

Surely as you probably already know the easiest way is to keep a list
of all the functions tha begin with the same name, and assign them
different ids internally based on their args.
When the function is actually called, first get the name and then
depending on the args put the call to the approrpiate function.

But i guess you already know this.
So what exactly are you looking for?

On 8/9/05, Bryan Ewbank <ewbank at gmail.com> wrote:
> I'm looking for a good reference on strategy to support and implement
> function overloading (same name, different argument lists).  Those
> I've seen are either weak on the subject, or treat it as a solved
> problem.
> I can plow ahead with what I have, but it just doesn't feel elegant -
> and I'm reinventing the wheel.
> Any suggestions?
> - Bryan Ewbank

More information about the antlr-interest mailing list