Searched refs:Lexer (Results 1 – 6 of 6) sorted by relevance
/development/vndk/tools/sourcedr/blueprint/tests/ |
D | test_lexer.py | 24 from blueprint import Lexer, LexerError, Token 75 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 0) 79 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 1) 83 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 2) 88 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 3) 92 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 4) 96 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 5) 100 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 6) 105 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 7) 109 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 8) [all …]
|
D | test_parser.py | 23 from blueprint import Lexer, Parser, String, VarRef 72 lexer = Lexer('a = "example"') 81 lexer = Lexer('a = []') 90 lexer = Lexer('a = ["x"]') 99 lexer = Lexer('a = ["x",]') 108 lexer = Lexer('a = ["x", "y"]') 117 lexer = Lexer('a = ["x", "y",]') 126 lexer = Lexer('a = {}') 135 lexer = Lexer('a = {x: "1"}') 144 lexer = Lexer('a = {x: "1",}') [all …]
|
D | test_module_path.py | 25 from blueprint import Lexer, Parser, RecursiveParser 43 parser = Parser(Lexer(content, path='test_path'))
|
/development/vndk/tools/sourcedr/ninja/tests/ |
D | test_ninja.py | 137 lexer = ninja.Lexer(['#comment']) 142 lexer = ninja.Lexer(['#comment\n']) 146 lexer = ninja.Lexer([' #comment\n']) 150 lexer = ninja.Lexer(['\t#comment\n']) 154 lexer = ninja.Lexer([' \t#comment\n']) 159 lexer = ninja.Lexer([' \n']) 163 lexer = ninja.Lexer(['\t\n']) 167 lexer = ninja.Lexer([' \t\n']) 172 lexer = ninja.Lexer(['\n']) 177 lexer = ninja.Lexer([' a']) [all …]
|
/development/vndk/tools/sourcedr/blueprint/ |
D | blueprint.py | 124 self.line, self.column = Lexer.compute_line_column(buf, pos) 133 class Lexer(object): class 564 Lexer.compute_line_column(lexer.buf, lexer.start) 811 parser = Parser(Lexer(content, path=path), env)
|
/development/vndk/tools/sourcedr/ninja/ |
D | ninja.py | 276 class Lexer(object): class 567 self._push_context(Lexer(fp, path, encoding), env)
|