Home
last modified time | relevance | path

Searched refs:firstToken (Results 1 – 5 of 5) sorted by relevance

/external/antlr/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/
DANTLRv3.g208 // it's really BLOCK[firstToken,"BLOCK"]; set line/col to previous ( or : token.
217 Token firstToken = input.LT(1);
220 : element+ -> ^(ALT[firstToken,"ALT"] element+ EOA["EOA"])
287 Token firstToken = input.LT(1);
290 $ebnf.tree.getToken().setLine(firstToken.getLine());
291 $ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
348 Token firstToken = input.LT(1);
395 Token firstToken = input.LT(1);
398 $rewrite_tree_ebnf.tree.getToken().setLine(firstToken.getLine());
399 $rewrite_tree_ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DANTLRv3.g206 // it's really BLOCK[firstToken,"BLOCK"]; set line/col to previous ( or : token.
214 Token firstToken = input.LT(1);
217 : element+ -> ^(ALT[firstToken,"ALT"] element+ EOA["EOA"])
317 Token firstToken = input.LT(1);
320 $ebnf.tree.getToken().setLine(firstToken.getLine());
321 $ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
353 Token firstToken = input.LT(1);
400 Token firstToken = input.LT(1);
403 $rewrite_tree_ebnf.tree.getToken().setLine(firstToken.getLine());
404 $rewrite_tree_ebnf.tree.getToken().setCharPositionInLine(firstToken.getCharPositionInLine());
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs428 var firstToken = tokenizer.Next(); in MergeStructValue()
430 switch (firstToken.Type) in MergeStructValue()
436 … fields[Value.StringValueFieldNumber].Accessor.SetValue(message, firstToken.StringValue); in MergeStructValue()
439 … fields[Value.NumberValueFieldNumber].Accessor.SetValue(message, firstToken.NumberValue); in MergeStructValue()
443 …fields[Value.BoolValueFieldNumber].Accessor.SetValue(message, firstToken.Type == JsonToken.TokenTy… in MergeStructValue()
449 tokenizer.PushBack(firstToken); in MergeStructValue()
458 tokenizer.PushBack(firstToken); in MergeStructValue()
464 … throw new InvalidOperationException("Unexpected token type: " + firstToken.Type); in MergeStructValue()
/external/clang/lib/Lex/
DMacroInfo.cpp43 const Token &firstToken = ReplacementTokens.front(); in getDefinitionLengthSlow() local
45 SourceLocation macroStart = firstToken.getLocation(); in getDefinitionLengthSlow()
48 assert((macroStart.isFileID() || firstToken.is(tok::comment)) && in getDefinitionLengthSlow()
/external/libxml2/
Drngparser.c80 int firstToken; member
256 token = &(ctxt->tokens[(ctxt->firstToken + ctxt->nbTokens) % MAX_TOKEN]); in xmlCRNGNextToken()
390 ret = &(ctxt->tokens[(ctxt->firstToken + no) % MAX_TOKEN]); in xmlParseCRNGGetToken()
407 ctxt->firstToken++; in xmlParseCRNGDropTokens()
414 ctxt->firstToken = ctxt->firstToken % MAX_TOKEN; in xmlParseCRNGDropTokens()
1460 ctxt.firstToken = 0; in xmlConvertCRNG()