| 142 | return f"{s}//{self.text}" |
| 143 | |
| 144 | class FunctionCall(ParsingItem): |
| 145 | def __init__(self, parent): |
| 146 | super().__init__(parent) |
| 147 | self.functionName = None |
| 148 | self.arguments = None |
| 149 | def fromText(self, name : str): |
| 150 | self.functionName = name.split("(")[0] |
| 151 | self.arguments = [] |
| 152 | for argument in (name.split("(")[1].split(")")[0].split(",")): |
| 153 | c = cleanArgument(argument) |
| 154 | if (len(c) > 0): |
| 155 | self.arguments.append(cleanArgument(argument)) |
| 156 | debugStop = 234 |
| 157 | def __str__(self): |
| 158 | spaces = "" |
| 159 | for _ in range(self.parent.depth): |
| 160 | spaces += " " |
| 161 | return f"{spaces}{self.functionName}({self.arguments})" |
| 162 | |
| 163 | class Container(ParsingItem): |
| 164 | def __init__(self, parent): |