Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #2830

What is the meaning of an expression?

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From Christopher F Clark <christopher.f.clark@compiler-resources.com>
Newsgroups comp.compilers
Subject What is the meaning of an expression?
Date Fri, 14 Jan 2022 22:42:58 +0200
Organization Compilers Central
Lines 26
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <22-01-054@comp.compilers> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Injection-Info gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="53051"; mail-complaints-to="abuse@iecc.com"
Keywords semantics
Posted-Date 14 Jan 2022 16:43:29 EST
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:2830

Show key headers only | View raw


I wouldn't use either of the statements in a compiler construction context:

The meaning of an expression is the value of an expression.
The semantics of an expression is the value of an expression.

Although if I had to imagine using one of those two sentences, I could
vaguely imagine using the former? As in "what does 1 + 1 mean?" It
means "add one and one together, the answer being two". But, even in
that case, I wouldn't make it a blanket statement. You have to
contrive an example where you would use a statement like that and it
isn't particularly natural. Most importantly, it isn't something
general.

This is as close as I can imagine coming:
"In a value oriented language, the meaning of an expression is the
value of an expression".

So, I heartily agree with our esteemed moderator.  Don't believe
everything you read.
--
******************************************************************************
Chris Clark                  email: christopher.f.clark@compiler-resources.com
Compiler Resources, Inc.  Web Site: http://world.std.com/~compres
23 Bailey Rd                 voice: (508) 435-5016
Berlin, MA  01503 USA      twitter: @intel_chris
------------------------------------------------------------------------------

Back to comp.compilers | Previous | Next | Find similar


Thread

What is the meaning of an expression? Christopher F Clark <christopher.f.clark@compiler-resources.com> - 2022-01-14 22:42 +0200

csiph-web