Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-03

Operator precendence of ^

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Maël Hörz

Hello,

I read the documentation on operator precedence:
https://www.freepascal.org/docs-html/ref/refch12.html

But I could not find any mention of the derefence operator ^.

How does it fit within the order given in the link above?

I also wonder how operators are determined.

For example
Parent.AnotherParent.Items[2]
would be one operand in an expression such as:

Parent.AnotherParent.Items[2] + 10

But what is the grammar/rules for determining what tokens belong to a complex operand, such as "Parent.AnotherParent.Items[2]"?

Best regards,
Maël Hörz

Reply by email