OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import re | 6 import re |
7 import subprocess | 7 import subprocess |
8 import tempfile | 8 import tempfile |
9 | 9 |
10 from pegparser import * | 10 from pegparser import * |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 Args: | 432 Args: |
433 content -- text to parse. | 433 content -- text to parse. |
434 defines -- an array of pre-processor defines. | 434 defines -- an array of pre-processor defines. |
435 includePaths -- an array of path strings used by the | 435 includePaths -- an array of path strings used by the |
436 gcc pre-processor. | 436 gcc pre-processor. |
437 """ | 437 """ |
438 if self._syntax == WEBKIT_SYNTAX: | 438 if self._syntax == WEBKIT_SYNTAX: |
439 content = self._pre_process(content, defines, includePaths) | 439 content = self._pre_process(content, defines, includePaths) |
440 | 440 |
441 return self._pegparser.parse(content) | 441 return self._pegparser.parse(content) |
OLD | NEW |