Add WebIDL and Pepper compliant lexer/parser tool.
commitac7b49d82dee3e690968139b610553386f6f1f3c
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 12 Apr 2013 18:48:47 +0000 (12 18:48 +0000)
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 12 Apr 2013 18:48:47 +0000 (12 18:48 +0000)
tree3701977bff91385289785992d6f016aa2ed66ee9
parent7a54a4316797f7afebeb013b20631f90bba9eecb
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: python idl_lexer.py OR python idl_parser.py

NOTRY=true
R=sehr@chromium.org
BUG=224150

Review URL: https://codereview.chromium.org/13498002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193973 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
tools/idl_parser/idl_lexer.py
tools/idl_parser/idl_node.py [new file with mode: 0755]
tools/idl_parser/idl_parser.py [new file with mode: 0755]
tools/idl_parser/idl_parser_test.py [new file with mode: 0755]
tools/idl_parser/idl_ppapi_lexer.py
tools/idl_parser/run_tests.py
tools/idl_parser/test_lexer/keywords.in
tools/idl_parser/test_parser/callback.idl [new file with mode: 0644]
tools/idl_parser/test_parser/dictionary.idl [new file with mode: 0644]
tools/idl_parser/test_parser/enum.idl [new file with mode: 0644]
tools/idl_parser/test_parser/exception.idl [new file with mode: 0644]
tools/idl_parser/test_parser/implements.idl [new file with mode: 0644]
tools/idl_parser/test_parser/interface.idl [new file with mode: 0644]
tools/idl_parser/test_parser/typedef.idl [new file with mode: 0644]