K
K
koi com2014-10-26 21:26:13
Programming languages
koi com, 2014-10-26 21:26:13

What does REF mean in programming languages?

I was led to this question by a rule from the grammar of one language, namely:
<kind>::=BOOL|INT|REF<kind>
It turns out that both simple BOOL, INT and records of the form REF BOOL / REF INT are possible. This confuses me. Maybe REF says that there is a description of the variable. But then, logically, the rule should look like this:
<kind>::= REF BOOL | REF INT
Variable of type BOOL or variable of type INT.
I look forward to your feedback on this rule.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Lerg, 2014-10-26
@Lerg

REF - reference, link, pointer.

J
jcmvbkbc, 2014-10-26
@jcmvbkbc

<kind>::=BOOL|INT|REF<kind>
It turns out that both simple BOOL, INT are possible, as well as records like REF BOOL/REF INT.

It doesn't follow from the passage you quoted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question