Skip to content

Commit

Permalink
Editorial: Move the runtime semantics for QuantifiableAssertion
Browse files Browse the repository at this point in the history
... down to its proper place in production order.

(This commit's diff probably shows a complicated combination of tweaks,
but it's really just taking a block of 22 lines
and shifting it down the file.)
  • Loading branch information
jmdyck committed Jan 25, 2020
1 parent e10c0a8 commit 14b39ec
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -31827,9 +31827,14 @@ <h1>Assertion</h1>
1. If _a_ is *false* and _b_ is *true*, return *false*.
1. Return *true*.
</emu-alg>
<p>The production <emu-grammar>QuantifiableAssertion :: `(` `?` `=` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<p>The production <emu-grammar>Assertion :: QuantifiableAssertion</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |Disjunction| with +1 as its _direction_ argument to obtain a Matcher _m_.
1. Evaluate |QuantifiableAssertion| to obtain a Matcher _m_.
1. Return _m_.
</emu-alg>
<p>The production <emu-grammar>Assertion :: `(` `?` `&lt;=` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |Disjunction| with -1 as its _direction_ argument to obtain a Matcher _m_.
1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps:
1. Let _d_ be a Continuation that always returns its State argument as a successful MatchResult.
1. Call _m_(_x_, _d_) and let _r_ be its result.
Expand All @@ -31840,23 +31845,18 @@ <h1>Assertion</h1>
1. Let _z_ be the State (_xe_, _cap_).
1. Call _c_(_z_) and return its result.
</emu-alg>
<p>The production <emu-grammar>QuantifiableAssertion :: `(` `?` `!` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<p>The production <emu-grammar>Assertion :: `(` `?` `&lt;!` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |Disjunction| with +1 as its _direction_ argument to obtain a Matcher _m_.
1. Evaluate |Disjunction| with -1 as its _direction_ argument to obtain a Matcher _m_.
1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps:
1. Let _d_ be a Continuation that always returns its State argument as a successful MatchResult.
1. Call _m_(_x_, _d_) and let _r_ be its result.
1. If _r_ is not ~failure~, return ~failure~.
1. Call _c_(_x_) and return its result.
</emu-alg>
<p>The production <emu-grammar>Assertion :: QuantifiableAssertion</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |QuantifiableAssertion| to obtain a Matcher _m_.
1. Return _m_.
</emu-alg>
<p>The production <emu-grammar>Assertion :: `(` `?` `&lt;=` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<p>The production <emu-grammar>QuantifiableAssertion :: `(` `?` `=` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |Disjunction| with -1 as its _direction_ argument to obtain a Matcher _m_.
1. Evaluate |Disjunction| with +1 as its _direction_ argument to obtain a Matcher _m_.
1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps:
1. Let _d_ be a Continuation that always returns its State argument as a successful MatchResult.
1. Call _m_(_x_, _d_) and let _r_ be its result.
Expand All @@ -31867,9 +31867,9 @@ <h1>Assertion</h1>
1. Let _z_ be the State (_xe_, _cap_).
1. Call _c_(_z_) and return its result.
</emu-alg>
<p>The production <emu-grammar>Assertion :: `(` `?` `&lt;!` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<p>The production <emu-grammar>QuantifiableAssertion :: `(` `?` `!` Disjunction `)`</emu-grammar> evaluates as follows:</p>
<emu-alg>
1. Evaluate |Disjunction| with -1 as its _direction_ argument to obtain a Matcher _m_.
1. Evaluate |Disjunction| with +1 as its _direction_ argument to obtain a Matcher _m_.
1. Return an internal Matcher closure that takes two arguments, a State _x_ and a Continuation _c_, and performs the following steps:
1. Let _d_ be a Continuation that always returns its State argument as a successful MatchResult.
1. Call _m_(_x_, _d_) and let _r_ be its result.
Expand Down

0 comments on commit 14b39ec

Please sign in to comment.