Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Issue 13498002: Add WebIDL compliant parser plus tests (Closed)

Created:
7 years, 8 months ago by noelallen1
Modified:
7 years, 8 months ago
Reviewers:
sehr
CC:
chromium-reviews
Visibility:
Public.

Description

Add WebIDL and Pepper compliant lexer/parser tool. This CL is the first step towards supporting automatic doc generation. This lexer more closely follows the WebIDL spec. Please review idl_node, idl_parser, idl_node idl_log.py is unchanged from the original This is a complete re-write of the original lexer/parser, as well as simplifications to IDLNode. All *.in and *.idl files are for test purposes only. To test: src/tools/idl_parser/run_tests.py NOTRY=true R=sehr@chromium.org BUG=224150 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193973

Patch Set 1 #

Patch Set 2 : Add tests and fix errors #

Patch Set 3 : Clean up IDLNode, make members private #

Total comments: 12

Patch Set 4 : Rebase on new lexer, remove HEX #

Total comments: 19

Patch Set 5 : Split test out #

Patch Set 6 : Merge lexer changes #

Patch Set 7 : Rebase lexer #

Patch Set 8 : Fix spacing nits #

Patch Set 9 : Merge using updated lexer, fix error msgs #

Total comments: 6

Patch Set 10 : Add parser for WebIDL #

Patch Set 11 : 'Delay build of Lexer to handler tokens correctly.' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2181 lines, -57 lines) Patch
M tools/idl_parser/idl_lexer.py View 1 2 3 4 5 6 7 8 9 10 6 chunks +60 lines, -28 lines 0 comments Download
A tools/idl_parser/idl_node.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +217 lines, -0 lines 0 comments Download
A tools/idl_parser/idl_parser.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1029 lines, -0 lines 0 comments Download
A tools/idl_parser/idl_parser_test.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
M tools/idl_parser/idl_ppapi_lexer.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -23 lines 0 comments Download
M tools/idl_parser/run_tests.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -3 lines 0 comments Download
M tools/idl_parser/test_lexer/keywords.in View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -3 lines 0 comments Download
A tools/idl_parser/test_parser/callback.idl View 1 2 3 4 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/dictionary.idl View 1 7 8 1 chunk +95 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/enum.idl View 1 7 8 1 chunk +119 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/exception.idl View 1 2 3 4 7 8 1 chunk +87 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/implements.idl View 1 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/interface.idl View 1 2 3 7 8 1 chunk +127 lines, -0 lines 0 comments Download
A tools/idl_parser/test_parser/typedef.idl View 1 7 8 1 chunk +190 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
noelallen1
ptal
7 years, 8 months ago (2013-04-04 20:26:23 UTC) #1
sehr
First few comments. Also please note that copyright dates are frequently using 2012, when they ...
7 years, 8 months ago (2013-04-08 16:41:20 UTC) #2
sehr
Some more nits and a couple of questions. I have been through the whole CL ...
7 years, 8 months ago (2013-04-08 18:37:06 UTC) #3
noelallen1
ptal Moved tests into their own harness, which now runs on the command-line via - ...
7 years, 8 months ago (2013-04-11 21:52:09 UTC) #4
sehr
LGTM with a few nits. https://chromiumcodereview.appspot.com/13498002/diff/29001/tools/idl_parser/idl_node.py File tools/idl_parser/idl_node.py (right): https://chromiumcodereview.appspot.com/13498002/diff/29001/tools/idl_parser/idl_node.py#newcode119 tools/idl_parser/idl_node.py:119: return self._properties['FILENAME'], self._properties['LINENO'] sometimes ...
7 years, 8 months ago (2013-04-12 15:54:57 UTC) #5
noelallen1
https://chromiumcodereview.appspot.com/13498002/diff/29001/tools/idl_parser/idl_node.py File tools/idl_parser/idl_node.py (right): https://chromiumcodereview.appspot.com/13498002/diff/29001/tools/idl_parser/idl_node.py#newcode119 tools/idl_parser/idl_node.py:119: return self._properties['FILENAME'], self._properties['LINENO'] On 2013/04/12 15:54:57, sehr1 wrote: > ...
7 years, 8 months ago (2013-04-12 16:52:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelallen@chromium.org/13498002/35001
7 years, 8 months ago (2013-04-12 16:52:40 UTC) #7
commit-bot: I haz the power
Presubmit check for 13498002-35001 failed and returned exit status 1. INFO:root:Found 12 file(s). testExpectedType (__main__.PepperIDLLexer) ...
7 years, 8 months ago (2013-04-12 16:52:46 UTC) #8
noelallen1
7 years, 8 months ago (2013-04-12 18:48:52 UTC) #9
Message was sent while issue was closed.
Committed patchset #11 manually as r193973 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698