[fpc-devel] Clarify expression grammar

Vsevolod Alekseyev sevaa at sprynet.com
Wed Nov 5 23:27:34 CET 2014

Hi all,

in the FPC reference at 
http://www.freepascal.org/docs-html/ref/refse68.html#x127-13700012.1 , 
the formal grammar spec only goes down as far as factor. Can I please 
see the grammar for variable reference? A variable reference can be an 
arbitrarily complex thing; for example, 
MyStructArray[MyFunction(I)*10+1].StructMember[Ord(J)] is a perfectly 
valid variable reference.

The reason I'm asking, I noticed a funny thing is the way fcl-passrc 
parses expressions; without knowledge about the underlying grammar I 
can't tell if it's a bug or not.

More information about the fpc-devel mailing list