| 874 | } |
| 875 | |
| 876 | unsigned int ParseFunctionArguments(Lexeme** str) |
| 877 | { |
| 878 | unsigned callArgCount = 0; |
| 879 | unsigned lastArgument = SetCurrentArgument(callArgCount); |
| 880 | if(ParseVaribleSet(str)) |
| 881 | { |
| 882 | callArgCount++; |
| 883 | while(ParseLexem(str, lex_comma)) |
| 884 | { |
| 885 | SetCurrentArgument(callArgCount); |
| 886 | if(!ParseVaribleSet(str)) |
| 887 | ThrowError((*str)->pos, "ERROR: expression not found after ',' in function parameter list"); |
| 888 | callArgCount++; |
| 889 | } |
| 890 | } |
| 891 | SetCurrentArgument(lastArgument); |
| 892 | return callArgCount; |
| 893 | } |
| 894 | |
| 895 | bool ParseFunctionCall(Lexeme** str, bool memberFunctionCall) |
| 896 | { |
no test coverage detected