(text : str)
| 6 | text = text.split("[")[0] # Array indices are ok |
| 7 | return re.fullmatch("[a-z][a-z0-9]*(_[a-z0-9]+)+", text) |
| 8 | def isFunctionCall(text : str): |
| 9 | if (not "(" in text or not ")" in text): |
| 10 | return False |
| 11 | return isVariableName(text.split("(")[0].strip()) |
| 12 | def removeComments(text : str): |
| 13 | commentStart = text.find("/*") |
| 14 | while (commentStart != -1): |
no test coverage detected