Home
last modified time | relevance | path

Searched refs:lexer (Results 1 – 6 of 6) sorted by relevance

/development/vndk/tools/sourcedr/ninja/tests/
Dtest_ninja.py20 def _push_context(self, lexer, env): argument
21 super(MockedParser, self)._push_context(lexer, env)
137 lexer = ninja.Lexer(['#comment'])
138 tok = lexer.peek()
142 lexer = ninja.Lexer(['#comment\n'])
143 tok = lexer.peek()
146 lexer = ninja.Lexer([' #comment\n'])
147 tok = lexer.peek()
150 lexer = ninja.Lexer(['\t#comment\n'])
151 tok = lexer.peek()
[all …]
/development/vndk/tools/sourcedr/blueprint/
Dblueprint.py559 def __init__(self, lexer, message): argument
564 Lexer.compute_line_column(lexer.buf, lexer.start)
576 def __init__(self, lexer, inherited_env=None): argument
578 self.lexer = lexer
587 lexer = self.lexer
588 while lexer.token != Token.EOF:
589 if lexer.token == Token.IDENT:
591 if lexer.token in {Token.ASSIGN, Token.ASSIGNPLUS}:
592 self.parse_assign(ident, lexer.token)
593 elif lexer.token in {Token.LBRACE, Token.LPAREN}:
[all …]
/development/vndk/tools/sourcedr/blueprint/tests/
Dtest_parser.py72 lexer = Lexer('a = "example"')
74 parser = Parser(lexer)
81 lexer = Lexer('a = []')
83 parser = Parser(lexer)
90 lexer = Lexer('a = ["x"]')
92 parser = Parser(lexer)
99 lexer = Lexer('a = ["x",]')
101 parser = Parser(lexer)
108 lexer = Lexer('a = ["x", "y"]')
110 parser = Parser(lexer)
[all …]
Dtest_lexer.py555 lexer = Lexer('a b //a\n "c"', 0)
557 self.assertEqual(lexer.start, 0)
558 self.assertEqual(lexer.end, 1)
559 self.assertEqual(lexer.token, Token.IDENT)
560 self.assertEqual(lexer.literal, 'a')
561 lexer.consume(Token.IDENT)
563 self.assertEqual(lexer.start, 2)
564 self.assertEqual(lexer.end, 3)
565 self.assertEqual(lexer.token, Token.IDENT)
566 self.assertEqual(lexer.literal, 'b')
[all …]
/development/vndk/tools/sourcedr/ninja/
Dninja.py526 def _push_context(self, lexer, env): argument
535 self._lexer = lexer
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv44272 …tform/external/mesa3d,fake_MVKCSWSCRQa0jK6oYiO_KQ@fakeemail.com,glsl: Change the lexer's namespace.
49821 …rm/external/mesa3d,fake_bASr-kp2TRu6e4xELp05Nw@fakeemail.com,glsl: Rework lexer keyword handling i…
55019 …mesa3d,fake_goNzj0NjSfmxAtIiS5WVYQ@fakeemail.com,glsl/glcpp: Stop using a lexer start condition (<…
55670 …esa3d,fake_sgC7jg_DQbGrokqBkTa7KQ@fakeemail.com,glsl: Use | action in the lexer source to avoid du…
60466 …6,platform/external/mesa3d,fake_9fJYZ5V1SqGsEtSvABzm6Q@fakeemail.com,glsl/lexer: Support double fl…
61161 …8,platform/external/mesa3d,fake_IIepntw-T3KQn7fq13FFdg@fakeemail.com,glsl/lexer: use the linear al…
63403 …/external/mesa3d,fake_MVKCSWSCRQa0jK6oYiO_KQ@fakeemail.com,glsl: Have the lexer return LAYOUT_TOK …
67388 …a,platform/external/mesa3d,fake_4OPrBBDtTqKCWLQdHhEC-w@fakeemail.com,glsl/lexer: Add new tokens fo…
71555 …atform/external/smali,fake_7Dyw05FpQhu8oGAPB4GBGw@fakeemail.com,Regenerate lexer/parser/treewalker.
71578 …atform/external/smali,fake_7Dyw05FpQhu8oGAPB4GBGw@fakeemail.com,Regenerate lexer/parser/treewalker.
[all …]