Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #2871
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end |
|---|---|
| From | gah4 <gah4@u.washington.edu> |
| Newsgroups | comp.compilers |
| Subject | Re: What is the semantics of a language? |
| Date | Wed, 26 Jan 2022 13:21:04 -0800 (PST) |
| Organization | Compilers Central |
| Lines | 34 |
| Sender | news@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <22-01-114@comp.compilers> (permalink) |
| References | <22-01-081@comp.compilers> <22-01-113@comp.compilers> |
| 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="67308"; mail-complaints-to="abuse@iecc.com" |
| Keywords | semantics |
| Posted-Date | 26 Jan 2022 20:23:21 EST |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| In-Reply-To | <22-01-113@comp.compilers> |
| Xref | csiph.com comp.compilers:2871 |
Show key headers only | View raw
On Wednesday, January 26, 2022 at 11:48:28 AM UTC-8, George Neuner wrote: (snip) > I learned addition in /elementary/ school - so is addition elementary? > Or is it composite? The reader has to know - or be told - that in the > context of compiling "2" should be considered elementary but "1 + 1" > should be considered composite. For some reason, I have recently been answering questions (not here) about which AP calculus class to take, and when. I was reminded about the way some students think about math. That they learn each subject (algebra, geometry, calculus), take the exam, check it off the list of accomplishments, and then forget about it. And my counterexample is that you still need the addition you learned in first grade, even in calculus. (This is especially for students hoping to finish calculus before college, so they don't have to think about it any more.) But as recent discussions here have noted, you can't completely separate syntax and semantics. The line is fuzzy. A compiler class might teach syntax for some lectures, and semantics later, try to separate them to make it easier for students, but in the end you need both of them. This goes back to the way languages are defined. It goes into the way compilers are written, which isn't always the same way as the language definition. (And is more important when you try to get error messages right.) I remember so many years ago, learning about operator precedence parsers, but that seems to be a lost art now.
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
What is the semantics of a language? Roger L Costello <costello@mitre.org> - 2022-01-22 00:08 +0000
Re: What is the semantics of a language? luser droog <luser.droog@gmail.com> - 2022-01-24 11:39 -0800
Re: What is the semantics of a language? gah4 <gah4@u.washington.edu> - 2022-01-25 01:19 -0800
Re: What is the semantics of a language? George Neuner <gneuner2@comcast.net> - 2022-01-26 14:24 -0500
Re: What is the semantics of a language? gah4 <gah4@u.washington.edu> - 2022-01-26 13:21 -0800
Re: What is the semantics of a language? Louis Krupp <lkrupp@invalid.pssw.com.invalid> - 2022-02-18 04:16 -0700
csiph-web