HomeSort by relevance Sort by last modified time
    Searched refs:Lexer (Results 101 - 125 of 250) sorted by null

1 2 3 45 6 7 8 910

  /external/nist-sip/java/gov/nist/javax/sip/parser/ims/
PrivacyParser.java 46 import gov.nist.javax.sip.parser.Lexer;
69 protected PrivacyParser(Lexer lexer) {
71 super(lexer);
86 while (lexer.lookAhead(0) != '\n') {
87 this.lexer.SPorHT();
92 this.lexer.match(TokenTypes.ID);
93 Token token = lexer.getNextToken();
95 this.lexer.SPorHT();
99 while (lexer.lookAhead(0) == ';'
    [all...]
SecurityAgreeParser.java 46 import gov.nist.javax.sip.parser.Lexer;
61 protected SecurityAgreeParser(Lexer lexer) {
62 super(lexer);
98 this.lexer.SPorHT();
99 lexer.match(TokenTypes.ID);
100 Token type = lexer.getNextToken();
102 this.lexer.SPorHT();
104 char la = lexer.lookAhead(0);
111 this.lexer.match(';')
    [all...]
  /external/webkit/Source/JavaScriptCore/runtime/
LiteralParser.cpp 31 #include "Lexer.h"
45 LiteralParser::TokenType LiteralParser::Lexer::lex(LiteralParserToken& token)
141 template <LiteralParser::ParserMode mode> inline LiteralParser::TokenType LiteralParser::Lexer::lexString(LiteralParserToken& token)
197 builder.append(JSC::Lexer::convertUnicode(m_ptr[1], m_ptr[2], m_ptr[3], m_ptr[4]));
216 LiteralParser::TokenType LiteralParser::Lexer::lexNumber(LiteralParserToken& token)
341 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken();
363 Lexer::LiteralParserToken identifierToken = m_lexer.currentToken();
395 Lexer::LiteralParserToken stringToken = m_lexer.currentToken();
401 Lexer::LiteralParserToken numberToken = m_lexer.currentToken();
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
basic.rb 8 lexer grammar SimpleRewriting;
19 lexer = SimpleRewriting::Lexer.new( input )
20 tokens = ANTLR3::TokenRewriteStream.new( lexer )
227 lexer = SimpleRewriting::Lexer.new( 'abcc' )
228 stream = ANTLR3::TokenRewriteStream.new( lexer )
239 lexer = SimpleRewriting::Lexer.new( 'abcccba' )
240 stream = ANTLR3::TokenRewriteStream.new( lexer )
    [all...]
via-parser.rb 91 lexer = TokenRewrites::Lexer.new( input )
92 tokens = ANTLR3::TokenRewriteStream.new( lexer )
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
Helpers.java 393 Lexer lexer = new Lexer(selection, allowedColumns); local
394 parseExpression(lexer);
395 if (lexer.currentToken() != Lexer.TOKEN_END) {
411 private static void parseExpression(Lexer lexer) {
414 if (lexer.currentToken() == Lexer.TOKEN_OPEN_PAREN)
    [all...]
  /external/llvm/tools/llvm-mc/
llvm-mc.cpp 248 AsmLexer Lexer(MAI);
249 Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
252 while (Lexer.Lex().isNot(AsmToken::Eof)) {
253 AsmToken Tok = Lexer.getTok();
257 SrcMgr.PrintMessage(Lexer.getLoc(), SourceMgr::DK_Warning,
265 Out->os() << "identifier: " << Lexer.getTok().getString();
268 Out->os() << "int: " << Lexer.getTok().getString();
271 Out->os() << "real: " << Lexer.getTok().getString();
274 Out->os() << "register: " << Lexer.getTok().getRegVal();
277 Out->os() << "string: " << Lexer.getTok().getString()
    [all...]
  /external/llvm/lib/MC/MCParser/
AsmParser.cpp 85 AsmLexer Lexer;
146 virtual MCAsmLexer &getLexer() { return Lexer; }
200 /// \brief Reset the current lexer position to that given by \arg Loc. The
380 : Lexer(_MAI), Ctx(_Ctx), Out(_Out), MAI(_MAI), SrcMgr(_SM),
389 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer));
447 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
453 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer));
463 int NewBuf = SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
475 Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer), Loc.getPointer());
479 const AsmToken *tok = &Lexer.Lex()
    [all...]
  /external/clang/lib/Lex/
Lexer.cpp 1 //===--- Lexer.cpp - C Language Family Lexer ------------------------------===//
10 // This file implements the Lexer and Token interfaces.
14 // TODO: GCC Diagnostics emitted by the lexer:
27 #include "clang/Lex/Lexer.h"
60 // Lexer Class Implementation
63 void Lexer::anchor() { }
65 void Lexer::InitLexer(const char *BufStart, const char *BufPtr,
113 /// Lexer constructor - Create a new lexer object for the specified buffe
    [all...]
  /external/clang/include/clang/Lex/
Preprocessor.h 18 #include "clang/Lex/Lexer.h"
58 /// Preprocessor - This object engages in a tight little dance with the lexer to
155 /// avoid tearing the Lexer and etc. down).
198 /// place the lexer at the start of a line.
204 OwningPtr<Lexer> CurLexer;
225 /// \brief The kind of lexer we're currently working with.
239 Lexer *TheLexer;
245 IncludeStackInfo(enum CurLexerKind K, Lexer *L, PTHLexer* P,
412 /// lexer.
417 /// getCurrentLexer - Return the current lexer being lexed from. Not
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
properties.rb 21 @lexer::members {
41 lexer = RuleProperties::Lexer.new( ' a a a a ' )
42 parser = RuleProperties::Parser.new lexer
65 @lexer::members {
87 lexer = Labels::Lexer.new 'a, b, c, 1, 2 A FOOBAR GNU1 A BLARZ'
88 parser = Labels::Parser.new lexer
123 @lexer::members {
162 lexer = TokenLabels::Lexer.new( ' a'
    [all...]
rule-methods.rb 23 @lexer::members {
46 lexer = Parameters::Lexer.new( 'a a a' )
47 parser = Parameters::Parser.new lexer
69 @lexer::members {
100 lexer = MultipleReturnValues::Lexer.new( ' a' )
101 parser = MultipleReturnValues::Parser.new lexer
  /external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
TestCommonTokenStream.java 40 "lexer grammar t;\n"+
61 "lexer grammar t;\n"+
82 "lexer grammar t;\n"+
112 "lexer grammar t;\n"+
143 "lexer grammar t;\n"+
172 TokenSource lexer = // simulate input " x =34 ;\n" local
188 tokens[0].setChannel(Lexer.HIDDEN);
189 tokens[2].setChannel(Lexer.HIDDEN);
190 tokens[5].setChannel(Lexer.HIDDEN);
191 tokens[6].setChannel(Lexer.HIDDEN)
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
Lexer.cs 37 * A lexer is recognizer that draws input symbols from a character stream.
38 * lexer grammars result in a subclass of this object. A Lexer object
43 public abstract class Lexer : BaseRecognizer, ITokenSource {
44 /** <summary>Where is the lexer drawing characters from?</summary> */
47 public Lexer() {
50 public Lexer(ICharStream input) {
54 public Lexer(ICharStream input, RecognizerSharedState state)
93 // wack Lexer state variables
143 * Instruct the lexer to skip creating a token for current lexer rul
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
Lexer.cs 38 * A lexer is recognizer that draws input symbols from a character stream.
39 * lexer grammars result in a subclass of this object. A Lexer object
44 public abstract class Lexer : BaseRecognizer, ITokenSource
46 /** <summary>Where is the lexer drawing characters from?</summary> */
49 public Lexer()
53 public Lexer( ICharStream input )
58 public Lexer( ICharStream input, RecognizerSharedState state )
109 // wack Lexer state variables
177 * Instruct the lexer to skip creating a token for current lexer rul
    [all...]
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
Lexer.java 30 /** A lexer is recognizer that draws input symbols from a character stream.
31 * lexer grammars result in a subclass of this object. A Lexer object
35 public abstract class Lexer extends BaseRecognizer implements TokenSource {
36 /** Where is the lexer drawing characters from? */
39 public Lexer() {
42 public Lexer(CharStream input) {
46 public Lexer(CharStream input, RecognizerSharedState state) {
53 // wack Lexer state variables
113 /** Instruct the lexer to skip creating a token for current lexer rul
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/unittests/
testrecognizers.py 57 """Lexer.__init__()"""
59 class TLexer(antlr3.Lexer):
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/
rule-tracing.rb 31 @lexer::init {
36 @lexer::members {
59 lexer = Traced::Lexer.new( '< 1 + 2 + 3 >' )
60 parser = Traced::Parser.new lexer
62 lexer.traces.should == [
  /external/antlr/antlr-3.4/runtime/Ruby/test/unit/
test-recognizers.rb 38 class TLexer < Lexer
  /external/nist-sip/java/gov/nist/javax/sip/parser/
AcceptEncodingParser.java 75 * @param lexer Lexer to set
77 protected AcceptEncodingParser(Lexer lexer) {
78 super(lexer);
94 if (lexer.lookAhead(0) == '\n') {
98 while (lexer.lookAhead(0) != '\n') {
100 if (lexer.lookAhead(0) != ';') {
102 lexer.match(TokenTypes.ID);
103 Token value = lexer.getNextToken()
    [all...]
AcceptLanguageParser.java 72 * @param lexer Lexer to set
74 protected AcceptLanguageParser(Lexer lexer) {
75 super(lexer);
91 while (lexer.lookAhead(0) != '\n') {
94 if (lexer.lookAhead(0) != ';') {
96 lexer.match(TokenTypes.ID);
97 Token value = lexer.getNextToken();
101 while (lexer.lookAhead(0) == ';')
    [all...]
AcceptParser.java 54 * @param lexer the lexer to use to parse the header
56 protected AcceptParser(Lexer lexer) {
57 super(lexer);
77 this.lexer.SPorHT();
78 this.lexer.match(TokenTypes.ID);
79 Token token = lexer.getNextToken();
81 this.lexer.match('/');
82 this.lexer.match(TokenTypes.ID)
    [all...]
AllowEventsParser.java 54 * @param lexer the lexer to use to parse the header
56 protected AllowEventsParser(Lexer lexer) {
57 super(lexer);
77 this.lexer.SPorHT();
78 this.lexer.match(TokenTypes.ID);
79 Token token = lexer.getNextToken();
83 this.lexer.SPorHT();
84 while (lexer.lookAhead(0) == ',')
    [all...]
AllowParser.java 53 * @param lexer the lexer to use to parse the header
55 protected AllowParser(Lexer lexer) {
56 super(lexer);
76 this.lexer.SPorHT();
77 this.lexer.match(TokenTypes.ID);
78 Token token = lexer.getNextToken();
82 this.lexer.SPorHT();
83 while (lexer.lookAhead(0) == ',')
    [all...]
CSeqParser.java 51 protected CSeqParser(Lexer lexer) {
52 super(lexer);
59 this.lexer.match(TokenTypes.CSEQ);
60 this.lexer.SPorHT();
61 this.lexer.match(':');
62 this.lexer.SPorHT();
63 String number = this.lexer.number();
65 this.lexer.SPorHT();
71 this.lexer.SPorHT()
    [all...]

Completed in 449 milliseconds

1 2 3 45 6 7 8 910