MCPcopy Create free account
hub / github.com/IENT/YUView / getEntryType

Function getEntryType

tools/standardTextToCode/parseTables.py:79–92  ·  view source on GitHub ↗
(text : str)

Source from the content-addressed store, hash-verified

77 return text
78
79def getEntryType(text : str):
80 text = removeComments(text)
81 if isVariableName(text):
82 return "Variable"
83 if isFunctionCall(text):
84 return "FunctionCall"
85 if text.startswith("for"):
86 return "for"
87 if text.startswith("if") or text.startswith("else if") or text.startswith("} else") or text.startswith("else"):
88 return "if"
89 if text.startswith("while"):
90 return "while"
91 if text.startswith("do"):
92 return "do"
93
94class ParsingItem:
95 def __init__(self, parent):

Callers 1

parseChildrenMethod · 0.85

Calls 3

removeCommentsFunction · 0.85
isVariableNameFunction · 0.85
isFunctionCallFunction · 0.85

Tested by

no test coverage detected