+ # helper functions to facilitate consistency in warnings\r
+ # each function is for a different common warning\r
+ @staticmethod\r
+ def Expected(Str, File, Line):\r
+ return Warning("expected {}".format(Str), File, Line)\r
+ @staticmethod\r
+ def ExpectedEquals(File, Line):\r
+ return Warning.Expected("'='", File, Line)\r
+ @staticmethod\r
+ def ExpectedCurlyOpen(File, Line):\r
+ return Warning.Expected("'{'", File, Line)\r
+ @staticmethod\r
+ def ExpectedCurlyClose(File, Line):\r
+ return Warning.Expected("'}'", File, Line)\r
+ @staticmethod\r
+ def ExpectedBracketClose(File, Line):\r
+ return Warning.Expected("']'", File, Line)\r
+\r