1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

JSSpecCompiler: Parse '?' before function calls in xspec mode

This commit is contained in:
Dan Klishch 2024-01-20 21:52:02 -05:00 committed by Andrew Kaster
parent b800276347
commit 3d365326af
5 changed files with 20 additions and 1 deletions

View file

@ -33,4 +33,12 @@
</ol>
</emu-alg>
</emu-clause>
<emu-clause id="3" aoid="TestReturnIfAbrupt">
<h1><span class="secnum">3</span> TestReturnIfAbrupt ( <var>a</var> )</h1>
<emu-alg>
<ol>
<li>Return ? <emu-xref><a>WellKnownConstants</a></emu-xref>(<var>a</var>).</li>
</ol>
</emu-alg>
</emu-clause>
</specification>

View file

@ -46,3 +46,11 @@ TreeList
ReturnNode
WellKnownNode False
TestReturnIfAbrupt(a):
TreeList
ReturnNode
UnaryOperation ReturnIfAbrubt
FunctionCall
Func "WellKnownConstants"
Var a