silent syntax errors/inform bug
Posted: Tue Sep 01, 2015 2:07 am
I'm writing an Inform parser and use your codebase as a test to handle a large -mostly custom- codebase.
I stumbled across this line: add ( "Snake" ) to infections of tailweapon; <- note parens instead of braces
and while verifying what that is supposed to do noticed a probable inform bug - this line -according to my tests- does not do what you (or any sane person) would think it does....
Either use braces or remove the parens since you add only one entry anyway.
This problem appears several times in your code
add ( "Snake" ) to infections of tailweapon;
add ( "Triceratops" ) to infections of tailweapon;
add ( "Killer Whale" ) to infections of tailweapon;
add ( "Squid" ) to infections of tailweapon;
add ( "Reptaur" ) to infections of tailweapon;
I stumbled across this line: add ( "Snake" ) to infections of tailweapon; <- note parens instead of braces
and while verifying what that is supposed to do noticed a probable inform bug - this line -according to my tests- does not do what you (or any sane person) would think it does....
Either use braces or remove the parens since you add only one entry anyway.
This problem appears several times in your code
add ( "Snake" ) to infections of tailweapon;
add ( "Triceratops" ) to infections of tailweapon;
add ( "Killer Whale" ) to infections of tailweapon;
add ( "Squid" ) to infections of tailweapon;
add ( "Reptaur" ) to infections of tailweapon;