Skip to content

Added binary-like operators guards

Pre-release
Pre-release
Compare
Choose a tag to compare
@sigmasoldi3r sigmasoldi3r released this 12 Jul 09:39
· 61 commits to master since this release

Now passing a BOP only one or zero arguments will throw a syntax error.

After that patch, doing like (= 5) would be translated to () which is not valid in Lua.

Example:

spelunker.crn:140:29
      ] (or (= "Y" i) (= "y" ) (= "N" i) (= "
                      ^^^^^^^^
Error: Operator #eq needs at least two arguments!