<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28065</bug_id>
          
          <creation_ts>2015-02-20 20:31:34 +0000</creation_ts>
          <short_desc>WebIDL: Grammar for readonly requires 2 token lookahead in some cases</short_desc>
          <delta_ts>2017-07-31 14:41:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kyle Machulis">kyle</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>tobie.langel</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118060</commentid>
    <comment_count>0</comment_count>
    <who name="Kyle Machulis">kyle</who>
    <bug_when>2015-02-20 20:31:34 +0000</bug_when>
    <thetext>Quoting bz from https://bugzilla.mozilla.org/show_bug.cgi?id=1123516:

So the issue here, as far as I can tell is that when we see the READONLY as our first token it&apos;s not clear whether the stack should become &quot;Inherit Readonly&quot; or just &quot;Readonly&quot;, right?  In particular, that requires one more token of lookahead: if we&apos;re looking at READONLY MAPLIKE then it needs to just become &quot;Readonly&quot; but if we&apos;re looking at READONLY ATTRIBUTE it needs to become &quot;Inherit Readonly&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128812</commentid>
    <comment_count>1</comment_count>
    <who name="Tobie Langel">tobie.langel</who>
    <bug_when>2017-07-31 13:47:58 +0000</bug_when>
    <thetext>This seems resolved, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128813</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2017-07-31 14:21:22 +0000</bug_when>
    <thetext>Because now ReadOnlyMember and ReadWriteAttribute are separate things under InterfaceMember?

I _think_ so.  It&apos;s a bit weird that ReadWriteAttribute includes &quot;inherit ReadOnly AttributeRest&quot; (as in, &quot;ReadWriteAttribute&quot; is a bad name for that production), but I _think_ there&apos;s no grammar problem.  I won&apos;t know for sure unless/until we try to update our grammar to match the one in the spec right now and see whether the tools complain...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128814</commentid>
    <comment_count>3</comment_count>
    <who name="Tobie Langel">tobie.langel</who>
    <bug_when>2017-07-31 14:27:47 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #2)
&gt; Because now ReadOnlyMember and ReadWriteAttribute are separate things under
&gt; InterfaceMember?

Yes? I still find it super hard to reason about this tbh.

&gt; I _think_ so.  It&apos;s a bit weird that ReadWriteAttribute includes &quot;inherit
&gt; ReadOnly AttributeRest&quot; (as in, &quot;ReadWriteAttribute&quot; is a bad name for that
&gt; production), but I _think_ there&apos;s no grammar problem.

Agree the name is bad. I should probably do a cleanup of the grammar at some point, but I don&apos;t think it&apos;s a top priority right not.

&gt; I won&apos;t know for
&gt; sure unless/until we try to update our grammar to match the one in the spec
&gt; right now and see whether the tools complain...

Sounds good. I&apos;ll close this as invalid (not sure what the keyword is for &quot;no longer an issue&quot;). And we can file a new issue if this turns out to be a problem again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>