Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #141244 > unrolled thread
| Started by | Keith Thompson <kst-u@mib.org> |
|---|---|
| First post | 2019-02-24 12:34 -0800 |
| Last post | 2019-02-25 09:57 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.c
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Interpretation of EBNF Keith Thompson <kst-u@mib.org> - 2019-02-24 12:34 -0800
Re: Interpretation of EBNF David Brown <david.brown@hesbynett.no> - 2019-02-25 09:57 +0100
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2019-02-24 12:34 -0800 |
| Subject | Re: Interpretation of EBNF |
| Message-ID | <lnwolporh8.fsf@kst-u.example.com> |
ram@zedat.fu-berlin.de (Stefan Ram) writes:
> The EBNF of C reads (excerpt):
>
> unary-expression:
> postfix-expression
> unary-operator unary-expression
>
> . The following question surely serves no practical demand,
> but just for the sake of correctly interpreting EBNF:
>
> The above surely allows a unary expression to be preceded
> by a finite number of minus signs (unary operators).
>
> When there is an infinite number (say Aleph_0) of minus signs
> and then a unary-expression, is this also a unary expression?
I'll let you know as soon as I finish parsing this infinite input.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2019-02-25 09:57 +0100 |
| Message-ID | <q50amd$9a8$1@dont-email.me> |
| In reply to | #141244 |
On 24/02/2019 21:34, Keith Thompson wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >> The EBNF of C reads (excerpt): >> >> unary-expression: >> postfix-expression >> unary-operator unary-expression >> >> . The following question surely serves no practical demand, >> but just for the sake of correctly interpreting EBNF: >> >> The above surely allows a unary expression to be preceded >> by a finite number of minus signs (unary operators). >> >> When there is an infinite number (say Aleph_0) of minus signs >> and then a unary-expression, is this also a unary expression? > > I'll let you know as soon as I finish parsing this infinite input. > What we need here is lazy evaluation. I have the answer ready theoretically, as long as you only ask for a small bit of it at a time.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c
csiph-web