storyscript/langParser.py
File langParser.py
has 336 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
from string import ascii_letters, digits
from .langData import Types, Exceptions, ConditionType, Array, LambdaExpr
from storyscript_mathparse.mathProcessor import process as processmath
from storyscript_mathparse import values
from . import executor
Avoid too many return
statements within this function. Open
Open
return f"InvalidSyntax: {e}", Exceptions.InvalidSyntax
Avoid too many return
statements within this function. Open
Open
return f"NotDefinedException: {e}", Exceptions.NotDefinedException
Avoid too many return
statements within this function. Open
Open
return Types.String
Avoid too many return
statements within this function. Open
Open
return f"InvalidTypeException: {e}", Exceptions.InvalidTypeException
Avoid too many return
statements within this function. Open
Open
return Types.Float
Avoid too many return
statements within this function. Open
Open
return Types.Dynamic
Avoid too many return
statements within this function. Open
Open
return Types.Dictionary
Avoid too many return
statements within this function. Open
Open
return Types.String
Avoid too many return
statements within this function. Open
Open
return Types.Boolean
Avoid too many return
statements within this function. Open
Open
return Types.Integer
Avoid too many return
statements within this function. Open
Open
return Types.Dynamic
Avoid too many return
statements within this function. Open
Open
return "InvalidSyntax: Unknown comparison operator.", Exceptions.InvalidSyntax
Avoid too many return
statements within this function. Open
Open
return True, None
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return Types.Tuple
Avoid too many return
statements within this function. Open
Open
return True, None
Avoid too many return
statements within this function. Open
Open
return Types.Void
Avoid too many return
statements within this function. Open
Open
return Types.Void
Avoid too many return
statements within this function. Open
Open
return Types.Action
Avoid too many return
statements within this function. Open
Open
return True, None
Avoid too many return
statements within this function. Open
Open
return True, None
Avoid too many return
statements within this function. Open
Open
return Exceptions.InvalidSyntax
Avoid too many return
statements within this function. Open
Open
return False, None
Avoid too many return
statements within this function. Open
Open
return Types.Any
Avoid too many return
statements within this function. Open
Open
return (
Avoid too many return
statements within this function. Open
Open
return True, None