Lines Matching defs:state
109 input->istream->mark = antlr3AsciiMark; /* Record the current lex state for later restore */
375 pANTLR3_LEX_STATE state;
389 state = ANTLR3_MALLOC(sizeof(ANTLR3_LEX_STATE));
393 input->markers->add(input->markers, state, ANTLR3_FREE_FUNC); /* No special structure, just free() on delete */
397 state = (pANTLR3_LEX_STATE)input->markers->get(input->markers, input->markDepth - 1);
404 /* We have created or retrieved the state, so update it with the current
405 * elements of the lexer state.
407 state->charPositionInLine = input->charPositionInLine;
408 state->currentLine = input->currentLine;
409 state->line = input->line;
410 state->nextChar = input->nextChar;
418 /** \brief Rewind the lexer input to the state specified by the last produced mark.
431 /** \brief Rewind the lexer input to the state specified by the supplied mark.
441 pANTLR3_LEX_STATE state;
450 /* Find the supplied mark state
452 state = (pANTLR3_LEX_STATE)input->markers->get(input->markers, (ANTLR3_UINT32)(mark - 1));
457 antlr3AsciiSeek(is, (ANTLR3_MARKER)(state->nextChar));
461 input->charPositionInLine = state->charPositionInLine;
462 input->currentLine = state->currentLine;
463 input->line = state->line;
464 input->nextChar = state->nextChar;
470 /** \brief Rewind the lexer input to the state specified by the supplied mark.
490 /** \brief Rewind the lexer input to the state specified by the supplied mark.