Replies: 1 comment
-
I'm not an expert in parser/lexer theory, so there are some decisions in the code, that are not common and/or fully incorrect in sense of separation of lexer and parser. One such thing is If you need to process program data parameters one by one, then use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
currently I am getting pContext->parser_state.programData.type as SCPI_TOKEN_ALL_PROGRAM_DATA
but in parser. c
int scpiParser_parseAllProgramData(lex_state_t * state, scpi_token_t * token, int * numberOfParameters)
line 1404
if we add this line token->type = tmp.type;
after adding the above statement (token->type = tmp.type), I can get the type of argument I have passed (for example if I have passed hex argument pContext->parser_state.programData.type will be updated bySCPI_TOKEN_HEXNUM
will this break something?
Beta Was this translation helpful? Give feedback.
All reactions