SeeminglyScience / ILAssembler

ILAsm-like DSL for PowerShell
MIT License
16 stars 1 forks source link

Change label syntax to match ILAsm #23

Closed SeeminglyScience closed 4 years ago

SeeminglyScience commented 4 years ago

Currently the : symbol must be placed at the start of the label name and must be on it's own line:

ldarg.0
brtrue.s if_true
ldc.i4.0
ret

:if_true
ldc.i4.1
ret

But this should be valid:

ldarg.0
brtrue.s if_true
br.s if_false

if_true:
ldc.i4.1
ret

if_false: ldc.i4.0
ret