RE: Exactly where is a RegularExpressionLiteral allowed?

2009-03-24 Thread Allen Wirfs-Brock
OK, let's try to wrap up this issues. In addition to adding RegularExpressionLiteral to Literal, do we also agree to delete the third paragraph of section 7 that says: Note that contexts exist in the syntactic grammar where both a division and a RegularExpressionLiteral are permitted by the

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-24 Thread David-Sarah Hopwood
Waldemar Horwat wrote: David-Sarah Hopwood wrote: I'll repeat my argument here for convenience: A DivisionPunctuator must be preceded by an expression. A RegularExpressionLiteral is itself an expression. (This assumes that the omission of RegularExpressionLiteral from Literal is a

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Brendan Eich
On Mar 23, 2009, at 11:36 AM, Allen Wirfs-Brock wrote: Pratap came up with an issue in reviewing the ES3.1 draft that I don’t have a good answer to: Sections 7 and 5.1.2 mention InputElementDiv and InputElementRegExp. 7 There are two goal symbols for the lexical grammar. The

RE: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Allen Wirfs-Brock
=/ was my typo, it's not in the specification. But see below: From: Brendan Eich [mailto:bren...@mozilla.com] Sent: Monday, March 23, 2009 11:57 AM ... If you make the /= correction, there is no ambiguity. 7.1 last paragraph: Note that contexts exist in the syntactic grammar where both a

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Brendan Eich
On Mar 23, 2009, at 12:38 PM, Allen Wirfs-Brock wrote: I don't think so, although perhaps the fix is as easy as adding RegularExpressionLiteral as an alternative RHS for PrimaryExpression. Oh sure -- that is the missing link. Thanks! /be ___

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread David-Sarah Hopwood
Brendan Eich wrote: [...] If you make the /= correction, there is no ambiguity. Indeed there is no ambiguity; I think Allen's point is that the spec is currently written in a way that is very unhelpful in allowing one to conclude that. 7.1 last paragraph: Note that contexts exist in the

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread David-Sarah Hopwood
Brendan Eich wrote: On Mar 23, 2009, at 12:38 PM, Allen Wirfs-Brock wrote: I don't think so, although perhaps the fix is as easy as adding RegularExpressionLiteral as an alternative RHS for PrimaryExpression. Oh sure -- that is the missing link. Thanks! It should be Literal, not

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Waldemar Horwat
David-Sarah Hopwood wrote: I'll repeat my argument here for convenience: A DivisionPunctuator must be preceded by an expression. A RegularExpressionLiteral is itself an expression. (This assumes that the omission of RegularExpressionLiteral from Literal is a bug.) Therefore, for there

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Brendan Eich
On Mar 23, 2009, at 4:27 PM, David-Sarah Hopwood wrote: Brendan Eich wrote: On Mar 23, 2009, at 12:38 PM, Allen Wirfs-Brock wrote: I don't think so, although perhaps the fix is as easy as adding RegularExpressionLiteral as an alternative RHS for PrimaryExpression. Oh sure -- that is the

RE: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Allen Wirfs-Brock
-Original Message- From: es-discuss-boun...@mozilla.org [mailto:es-discuss- boun...@mozilla.org] On Behalf Of Brendan Eich Sent: Monday, March 23, 2009 6:39 PM It should be Literal, not PrimaryExpression. There is no technical difference (since Literal is only used as one of the

Re: Exactly where is a RegularExpressionLiteral allowed?

2009-03-23 Thread Brendan Eich
On Mar 23, 2009, at 7:04 PM, Allen Wirfs-Brock wrote: -Original Message- From: es-discuss-boun...@mozilla.org [mailto:es-discuss- boun...@mozilla.org] On Behalf Of Brendan Eich Sent: Monday, March 23, 2009 6:39 PM It should be Literal, not PrimaryExpression. There is no technical