JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
282 stars 64 forks source link

Unmatched "end if" should throw a compiler error #46

Closed Decavoid closed 4 years ago

Decavoid commented 4 years ago

Steps to Reproduce:

Compile:

end if

Actual result: Compiles successfully Expected result: Compiler Error: 'end if' without matching 'if'

JoeStrout commented 4 years ago

I'm unable to reproduce this one in either the C++ (command-line) or the C# (Mini Micro) environments.

MiniScript 
Command-Line (Unix) v1; language v1.5 (Aug 19 2020)
> end if
Compiler Error: 'end if' without matching 'if' [line 1]

Possibly this is something already fixed? Closing this for now, but we'll open it back up again if you can point out a way I can reproduce it.

Decavoid commented 4 years ago

Reproducible at https://miniscript.org/tryit/