Lines Matching refs:ts

54 static pANTLR3_COMMON_TOKEN tokLT	        (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k);
55 static pANTLR3_COMMON_TOKEN dbgTokLT (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k);
56 static pANTLR3_COMMON_TOKEN get (pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 i);
57 static pANTLR3_TOKEN_SOURCE getTokenSource (pANTLR3_TOKEN_STREAM ts);
58 static void setTokenSource (pANTLR3_TOKEN_STREAM ts, pANTLR3_TOKEN_SOURCE tokenSource);
59 static pANTLR3_STRING toString (pANTLR3_TOKEN_STREAM ts);
60 static pANTLR3_STRING toStringSS (pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 start, ANTLR3_UINT32 …
61 static pANTLR3_STRING toStringTT (pANTLR3_TOKEN_STREAM ts, pANTLR3_COMMON_TOKEN start, pANTLR3…
62 static void setDebugListener (pANTLR3_TOKEN_STREAM ts, pANTLR3_DEBUG_EVENT_LISTENER debugger);
328 setDebugListener (pANTLR3_TOKEN_STREAM ts, pANTLR3_DEBUG_EVENT_LISTENER debugger) in setDebugListener() argument
332 ts->debugger = debugger; in setDebugListener()
336 ts->initialStreamState = ANTLR3_FALSE; in setDebugListener()
338 ts->_LT = dbgTokLT; in setDebugListener()
340 ts->istream->consume = dbgConsume; in setDebugListener()
341 ts->istream->_LA = dbgLA; in setDebugListener()
342 ts->istream->mark = dbgMark; in setDebugListener()
343 ts->istream->rewind = dbgRewindStream; in setDebugListener()
344 ts->istream->rewindLast = dbgRewindLast; in setDebugListener()
345 ts->istream->seek = dbgSeek; in setDebugListener()
352 tokLT (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k) in tokLT() argument
358 cts = (pANTLR3_COMMON_TOKEN_STREAM)ts->super; in tokLT()
375 if ((cts->p + k - 1) >= (ANTLR3_INT32)ts->istream->cachedSize) in tokLT()
377 pANTLR3_COMMON_TOKEN teof = &(ts->tokenSource->eofToken); in tokLT()
379 teof->setStartIndex (teof, ts->istream->index (ts->istream)); in tokLT()
380 teof->setStopIndex (teof, ts->istream->index (ts->istream)); in tokLT()
395 if ( (ANTLR3_UINT32) i >= ts->istream->cachedSize) in tokLT()
397 pANTLR3_COMMON_TOKEN teof = &(ts->tokenSource->eofToken); in tokLT()
399 teof->setStartIndex (teof, ts->istream->index(ts->istream)); in tokLT()
400 teof->setStopIndex (teof, ts->istream->index(ts->istream)); in tokLT()
420 pANTLR3_TOKEN_STREAM ts; in consumeInitialHiddenTokens() local
422 ts = (pANTLR3_TOKEN_STREAM) is->super; in consumeInitialHiddenTokens()
427 ts->debugger->consumeHiddenToken(ts->debugger, ts->get(ts, i)); in consumeInitialHiddenTokens()
430 ts->initialStreamState = ANTLR3_FALSE; in consumeInitialHiddenTokens()
437 dbgTokLT (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k) in dbgTokLT() argument
439 if (ts->initialStreamState == ANTLR3_TRUE) in dbgTokLT()
441 consumeInitialHiddenTokens(ts->istream); in dbgTokLT()
443 return tokLT(ts, k); in dbgTokLT()
497 get (pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 i) in get() argument
501 cts = (pANTLR3_COMMON_TOKEN_STREAM)ts->super; in get()
507 getTokenSource (pANTLR3_TOKEN_STREAM ts) in getTokenSource() argument
509 return ts->tokenSource; in getTokenSource()
513 setTokenSource ( pANTLR3_TOKEN_STREAM ts, in setTokenSource() argument
516 ts->tokenSource = tokenSource; in setTokenSource()
520 toString (pANTLR3_TOKEN_STREAM ts) in toString() argument
524 cts = (pANTLR3_COMMON_TOKEN_STREAM)ts->super; in toString()
531 return ts->toStringSS(ts, 0, ts->istream->size(ts->istream)); in toString()
535 toStringSS(pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 start, ANTLR3_UINT32 stop) in toStringSS() argument
543 cts = (pANTLR3_COMMON_TOKEN_STREAM) ts->super; in toStringSS()
549 if (stop >= ts->istream->size(ts->istream)) in toStringSS()
551 stop = ts->istream->size(ts->istream) - 1; in toStringSS()
556 tsource = ts->getTokenSource(ts); in toStringSS()
566 tok = ts->get(ts, i); in toStringSS()
580 toStringTT (pANTLR3_TOKEN_STREAM ts, pANTLR3_COMMON_TOKEN start, pANTLR3_COMMON_TOKEN stop) in toStringTT() argument
584 …return ts->toStringSS(ts, (ANTLR3_UINT32)start->getTokenIndex(start), (ANTLR3_UINT32)stop->getToke… in toStringTT()
603 pANTLR3_TOKEN_STREAM ts; in consume() local
605 ts = (pANTLR3_TOKEN_STREAM) is->super; in consume()
606 cts = (pANTLR3_COMMON_TOKEN_STREAM) ts->super; in consume()
622 pANTLR3_TOKEN_STREAM ts; in dbgConsume() local
627 ts = (pANTLR3_TOKEN_STREAM) is->super; in dbgConsume()
629 if (ts->initialStreamState == ANTLR3_TRUE) in dbgConsume()
635 t = ts->_LT(ts, 1); // Current token from stream in dbgConsume()
641 ts->debugger->consumeToken(ts->debugger, t); // Tell the debugger that we consumed the first token in dbgConsume()
653 ts->debugger->consumeHiddenToken(ts->debugger, ts->get(ts, (ANTLR3_UINT32)i)); in dbgConsume()
802 pANTLR3_TOKEN_STREAM ts; in _LA() local
805 ts = (pANTLR3_TOKEN_STREAM) is->super; in _LA()
807 tok = ts->_LT(ts, i); in _LA()
824 pANTLR3_TOKEN_STREAM ts; in dbgLA() local
826 ts = (pANTLR3_TOKEN_STREAM) is->super; in dbgLA()
828 if (ts->initialStreamState == ANTLR3_TRUE) in dbgLA()
832 ts->debugger->LT(ts->debugger, i, tokLT(ts, i)); in dbgLA()
848 pANTLR3_TOKEN_STREAM ts; in dbgMark() local
850 ts = (pANTLR3_TOKEN_STREAM) is->super; in dbgMark()
853 ts->debugger->mark(ts->debugger, is->lastMarker); in dbgMark()
868 pANTLR3_TOKEN_STREAM ts; in size() local
874 ts = (pANTLR3_TOKEN_STREAM) is->super; in size()
875 cts = (pANTLR3_COMMON_TOKEN_STREAM) ts->super; in size()
885 pANTLR3_TOKEN_STREAM ts; in tindex() local
887 ts = (pANTLR3_TOKEN_STREAM) is->super; in tindex()
888 cts = (pANTLR3_COMMON_TOKEN_STREAM) ts->super; in tindex()
896 pANTLR3_TOKEN_STREAM ts; in dbgRewindLast() local
898 ts = (pANTLR3_TOKEN_STREAM) is->super; in dbgRewindLast()
900 ts->debugger->rewindLast(ts->debugger); in dbgRewindLast()
917 pANTLR3_TOKEN_STREAM ts; in dbgRewindStream() local
919 ts = (pANTLR3_TOKEN_STREAM) is->super; in dbgRewindStream()
921 ts->debugger->rewind(ts->debugger, marker); in dbgRewindStream()
930 pANTLR3_TOKEN_STREAM ts; in seek() local
932 ts = (pANTLR3_TOKEN_STREAM) is->super; in seek()
933 cts = (pANTLR3_COMMON_TOKEN_STREAM) ts->super; in seek()