| | |
| | | size_t i = 0; |
| | | while (scpiLex_DecimalNumericProgramData(state, ¶m)) { |
| | | if (i < length) { |
| | | SCPI_ParamToInt(context, ¶m, &values[i]); |
| | | SCPI_ParamToInt32(context, ¶m, &values[i]); |
| | | } |
| | | |
| | | if (scpiLex_SpecificCharacter(state, ¶m, '!')) { |
| | |
| | | *dimensions = fromDimensions; |
| | | return SCPI_EXPR_OK; |
| | | } |
| | | } else if (err == SCPI_EXPR_NO_MORE) { |
| | | err = SCPI_EXPR_ERROR; |
| | | } |
| | | |
| | | return err; |
| | |
| | | if (res == SCPI_EXPR_ERROR) { |
| | | SCPI_ErrorPush(context, SCPI_ERROR_EXPRESSION_PARSING_ERROR); |
| | | } |
| | | if (res == SCPI_EXPR_NO_MORE) { |
| | | if (!scpiLex_IsEos(&lex)) { |
| | | res = SCPI_EXPR_ERROR; |
| | | SCPI_ErrorPush(context, SCPI_ERROR_EXPRESSION_PARSING_ERROR); |
| | | } |
| | | } |
| | | return res; |
| | | } |