Re: What is the meaning of an expression?

Thomas Koenig <tkoenig@netcologne.de>
Wed, 19 Jan 2022 20:51:12 -0000 (UTC)

          From comp.compilers

Related articles
[8 earlier articles]
Re: What is the meaning of an expression? 0xe2.0x9a.0x9b@gmail.com (Jan Ziak) (2022-01-17)
Re: What is the meaning of an expression? 0xe2.0x9a.0x9b@gmail.com (Jan Ziak) (2022-01-18)
Re: What is the meaning of an expression? gah4@u.washington.edu (gah4) (2022-01-18)
Re: What is the meaning of an expression? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2022-01-19)
Re: What is the meaning of an expression? 0xe2.0x9a.0x9b@gmail.com (Jan Ziak) (2022-01-19)
Re: What is the meaning of an expression? christopher.f.clark@compiler-resources.com (Christopher F Clark) (2022-01-19)
Re: What is the meaning of an expression? tkoenig@netcologne.de (Thomas Koenig) (2022-01-19)
Re: What is the meaning of an expression? gah4@u.washington.edu (gah4) (2022-01-19)
Re: What is the meaning of an expression? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2022-01-20)
Re: What is the meaning of an expression? tkoenig@netcologne.de (Thomas Koenig) (2022-01-22)
Re: What is the meaning of an expression? dave_thompson_2@comcast.net (2022-01-30)
Re: What is the meaning of an expression? johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2022-02-03)
| List of all articles for this month |
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.compilers
Date: Wed, 19 Jan 2022 20:51:12 -0000 (UTC)
Organization: news.netcologne.de
References: 22-01-052
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="4015"; mail-complaints-to="abuse@iecc.com"
Keywords: semantics
Posted-Date: 19 Jan 2022 16:29:53 EST

Roger L Costello <costello@mitre.org> schrieb:


> In some book I read this statement:
>
> The meaning of an expression is
> the value of the expression.


Jumping in late...


Computer science teminology can unfortunately be imprecise, and
different people and different documents use different words for
meaing the same thing, and vice versa.


If you want to know what expression means in a particular language,
look at its standards documents. For example, Fortran states
(F2018, 10.1.1)


# An expression represents either a data object reference
# or a computation, and its value is either a scalar or an
# array. Evaluation of an expression produces a value, which has a
# type, type parameters (if appropriate), and a shape (10.1.9).


whereas C states (n2596)


# An expression is a sequence of operators and operands that
# specifies computation of a value,92) or that designates an object
# or a function, or that generates side effects, or that performs
# a combination thereof.


so the two languages obviously have different meanings for the
term, and applying one definition to the other language is likely
to lead to confusion (such as about side effects in Fortran
expressions).


I find no definiton of "meaining" in either standard, so although
your question contains the word "meaning", I do not think it
is meaningful. Know what I mean?


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.