From: | Larry Evans <cppljevans@cox-internet.com> |
Newsgroups: | comp.compilers |
Date: | 11 Aug 2004 12:59:32 -0400 |
Organization: | Posted via Supernews, http://www.supernews.com |
References: | 04-08-046 04-08-058 |
Keywords: | parse, theory |
Posted-Date: | 11 Aug 2004 12:59:32 EDT |
On 08/10/2004 04:35 PM, Kenn Heinrich wrote:
[snip]
> I'd argue with your use of e. In automata theory, e is not usually
> interpreted as a symbol in the alphabet Vt. Rather, it's the identity
> element you add to Vt+ (the free semigroup over Vt) to get Vt* (free
> monoid). So by definition, (x e) = (x). e may be a string in a
Kenn,
Is there something like an identity element for the alternative
operator, |. I'm thinking that in (x e) the space is the implicit
multiplication operator with identity e, but I was wondering
if there were something similar for the addition (i.e. | )
operator. In addition, could this be what parsers are "in theory"
using when the lexer's return # (as in yacc) to signal the end of input?
-Larry
Return to the
comp.compilers page.
Search the
comp.compilers archives again.