Skip to content

Commit

Permalink
Remove struct expressions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
syg authored Oct 7, 2024
1 parent 7320865 commit 54a84f3
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ <h1>Syntax</h1>
`struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await] StructTail[?Yield, ?Await]
[+Default] `struct` [no LineTerminator here] StructTail[?Yield, ?Await]

StructExpression[Yield, Await] :
`struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await]? StructTail[?Yield, ?Await]

StructTail[Yield, Await] :
ClassHeritage[?Yield, ?Await]? `{` StructBody[?Yield, ?Await]? `}`

Expand Down Expand Up @@ -301,19 +298,6 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Perform ? BindingStructDeclarationEvaluation of this |StructDeclaration|.
1. Return ~empty~.
</emu-alg>
<emu-grammar>StructExpression : `struct` StructTail</emu-grammar>
<emu-alg>
1. Let _value_ be ? StructDefinitionEvaluation of |StructTail| with arguments *undefined* and *""*.
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1. Return _value_.
</emu-alg>
<emu-grammar>StructExpression : `struct` BindingIdentifier StructTail</emu-grammar>
<emu-alg>
1. Let _structName_ be StringValue of |BindingIdentifier|.
1. Let _value_ be ? StructDefinitionEvaluation of |StructTail| with arguments _structName_ and _structName_.
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1. Return _value_.
</emu-alg>
</emu-clause>
</ins>
</emu-clause>
Expand Down Expand Up @@ -754,9 +738,6 @@ <h1>Syntax</h1>
`shared` [no LineTerminator here] `struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await] SharedStructTail[?Yield, ?Await]
[+Default] `shared` [no LineTerminator here] `struct` [no LineTerminator here] SharedStructTail[?Yield, ?Await]

StructExpression[Yield, Await] :
`shared` [no LineTerminator here] `struct` [no LineTerminator here] BindingIdentifier[?Yield, ?Await]? SharedStructTail[?Yield, ?Await]

SharedStructTail[Yield, Await] :
ClassHeritage[?Yield, ?Await]? `{` SharedStructBody[?Yield, ?Await]? `}`

Expand Down Expand Up @@ -1049,19 +1030,6 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Perform ? BindingStructDeclarationEvaluation of this |StructDeclaration|.
1. Return ~empty~.
</emu-alg>
<emu-grammar>StructExpression : `shared` `struct` SharedStructTail</emu-grammar>
<emu-alg>
1. Let _value_ be ? SharedStructDefinitionEvaluation of |SharedStructTail| with arguments *undefined* and *""*.
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1. Return _value_.
</emu-alg>
<emu-grammar>StructExpression : `shared` `struct` BindingIdentifier SharedStructTail</emu-grammar>
<emu-alg>
1. Let _structName_ be StringValue of |BindingIdentifier|.
1. Let _value_ be ? SharedStructDefinitionEvaluation of |SharedStructTail| with arguments _structName_ and _structName_.
1. Set _value_.[[SourceText]] to the source text matched by |StructExpression|.
1. Return _value_.
</emu-alg>
</emu-clause>
</ins>
</emu-clause>
Expand Down

0 comments on commit 54a84f3

Please sign in to comment.