| To: | yyyyy@xxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: RE-ASSOC: a question about the associativity of RE concatenation |
| From: | Paul Eggert <yyyyyy@xxxxxxxxxxx> |
| Date: | Fri, 12 Apr 2002 00:18:00 -0700 (PDT) |
| Cc: | yyyy@xxxxxxxxxxx, yyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyy@xxxxxxxxxx |
| References: | <200204091857.OAA35259@raptor.research.att.com><200204092229.g39MTeX00802@shade.twinsun.com><200204092254.PAA02436@morrowfield.home><200204092340.g39Neua00876@shade.twinsun.com><uelho8ehm.wl@AMBER.yamato.ibm.com><200204100453.VAA03344@morrowfield.home> <ubscs855m.wl@AMBER.yamato.ibm.com> |
> Date: Wed, 10 Apr 2002 15:00:05 +0900 > From: Isamu Hasegawa <yyyyy@xxxxxxxxxxxxxx> > > "Implementations may use other programming languages or algorithms, > as long as the syntax supported is the same as that represented by > the grammar". > >(<http://www.opengroup.org/onlinepubs/007904975/utilities/xcu_chap01.html#tag_01_10>) > If RE implementations must use Left-associative grammar, the standard > must say "as long as the grammar is the same", I think. But the syntax is determined by the grammar in combination with other rules (e.g., lexical rules). So the standard is saying that you can't implement only the grammar; you must also implement the other syntactic rules. The intent of that quote is that one need not use C-language actions in a Yacc-generated LALR(1) parser to implement regular expressions and the like. I wouldn't read too much into this freedom, though. Yes, you can use Bison or ML or Ruby if you want to, but you must still implement behavior that conforms to all the syntactic and semantic requirements imposed by the standard. |
| Previous by Date: | Re: Regex -- From Andrew Hume, Nick Stoughton |
|---|---|
| Next by Date: | Re: RE-ASSOC: a question about the associativity of RE concatenation, Isamu Hasegawa |
| Previous by Thread: | Re: RE-ASSOC: a question about the associativity of RE concatenation, Isamu Hasegawa |
| Next by Thread: | Re: RE-ASSOC: a question about the associativity of RE concatenation, Isamu Hasegawa |
| Indexes: | [Date] [Thread] [All Lists] |