Support nullable types in mojom.
commite574ff5bc470b2c876f87c441692552dbf46f6c2
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 07:46:51 +0000 (7 07:46 +0000)
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 07:46:51 +0000 (7 07:46 +0000)
tree4c165a30b23e659daf10fbc7c3c44a5d8388f3b1
parent557521901fe68873a461fd4e1a460fd462067b02
Support nullable types in mojom.

This CL updates the lexer, parser and also the internal representation of mojom modules. The changes to the generators will be in a separate CL.

This CL doesn't change data_tests.py because it has been broken for quite a while. We could fix it in a separate CL if we think that it is still useful.

BUG=324170
TEST=those updated test files.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287997 0039d316-1c4b-4281-b951-d872f2087c98
mojo/public/tools/bindings/pylib/mojom/generate/data.py
mojo/public/tools/bindings/pylib/mojom/generate/module.py
mojo/public/tools/bindings/pylib/mojom/generate/pack.py
mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py
mojo/public/tools/bindings/pylib/mojom/parse/lexer.py
mojo/public/tools/bindings/pylib/mojom/parse/parser.py
mojo/public/tools/bindings/pylib/mojom/parse/translate.py
mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py
mojo/public/tools/bindings/pylib/mojom_tests/parse/parser_unittest.py