[antlr-interest] How does one handle variable number of function
parameters?
Bryan Ewbank
ewbank at gmail.com
Mon Nov 28 21:31:54 PST 2005
On 11/28/05, Rob Greene <robgreene at gmail.com> wrote:
> How do I handle all the function parameter expressions is what's throwing me...
> -Rob
>
A function call sounds like it looks something like this:
function_call : ID LPAREN^ args RPAREN!;
args : expr ( COMMA! expr )* { ## = #( #[ARGLIST,"ARGLIST"], ## ); } ;
Is this the place you need help, or is it something after this? Once
you have it parsed, where do you need to go?
More information about the antlr-interest
mailing list