> I know nothing of vbscript, but some languages can disambiguate this
> case by having the scanner(lexer) look up the identifier in the symbol
> table.

Unfortunately vbscript is dynamically typed. It's not possible (in the
general
case) to find the type of a symbol by static analysis of the code.

>
> lvalue : qualified_name indexer
> indexer : ( expression )
>               | ( expression , indexlist )
> indexlist : expression
>                | indexlist , expression

Thanks for this suggestion. Doing something like that eventually
resolved
the ambiguity the way I wanted.

The grammar is nearly complete now, and correct as far as I've tested
it,
but I'm left with a bunch of S/R and R/R conflicts (the above being
only one
of the sources of that).  Does that mean my grammar is horribly
broken?
The docs give the impression that conflicts are Bad and should always
be
fixed.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to