kjParser Problem -- Addendum

Glen Starchman glen at electricorb.com
Fri Feb 4 08:04:22 EST 2000


it is x=>y() that will not match...obviously x=y() will not match that
production.

;-)



Glen Starchman wrote:

> I am having a horrible time with the following in kjParser and am
> wondering if a) anyone has any suggestions on how to make it work with
> kjParser, or, b) if anyone suggests that I dump my kjParser-based parser
> and untilize SPARK.
>
> The problem is this: I have a production for invoking a member function
> of a class that looks like (excuse the sloppy rules, it was written very
> quickly):
>
> @R InvokeRule ::  Value  >> var => var called_with_statement
> @R CalledWithRule :: called_with_statement >> args
> @R CalledWith2Rule :: called_with_statement >>
>
> so, this will match:
> x=> y()
> or
> x => y
>
> or x => y
>
> but not
>
> x=y()
>
> any ideas? Any help is GREATLY appreciated!




More information about the Python-list mailing list