summaryrefslogtreecommitdiffstats
path: root/tools/idl_parser/test_lexer/values.in
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 17:00:46 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-06 17:00:46 +0000
commit683c8c52deba443b16049e26d470a8984347f6bf (patch)
treecf0b226190dfc93f63cd1814d8b9130f755bfff5 /tools/idl_parser/test_lexer/values.in
parent09b0a1b94a3fff60fe9c4f9498a40ede14839d9a (diff)
downloadchromium_src-683c8c52deba443b16049e26d470a8984347f6bf.zip
chromium_src-683c8c52deba443b16049e26d470a8984347f6bf.tar.gz
chromium_src-683c8c52deba443b16049e26d470a8984347f6bf.tar.bz2
Add WebIDL and Pepper compliant lexer tool.
This CL is the first step towards supporting automatic doc generation. This lexer more closely follows the WebIDL spec. Tests run manually, CL will be added to automate. NOTRY=true To test: python idl_lexer.py R=asargent@chromium.org BUG=224150 Review URL: https://codereview.chromium.org/13390012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/idl_parser/test_lexer/values.in')
-rw-r--r--tools/idl_parser/test_lexer/values.in50
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/idl_parser/test_lexer/values.in b/tools/idl_parser/test_lexer/values.in
new file mode 100644
index 0000000..1040724
--- /dev/null
+++ b/tools/idl_parser/test_lexer/values.in
@@ -0,0 +1,50 @@
+integer 1 integer 123 integer 12345
+identifier A123 identifier A_A
+
+COMMENT /*XXXX*/
+COMMENT //XXXX
+
+COMMENT /*MULTI LINE*/
+
+[ [
+] ]
+* *
+. .
+( (
+) )
+{ {
+} }
+[ [
+] ]
+, ,
+; ;
+: :
+= =
++ +
+- -
+/ /
+~ ~
+| |
+& &
+^ ^
+> >
+< <
+LSHIFT <<
+RSHIFT >>
+
+ELLIPSIS ...
+
+float 1.1
+float 1e1
+float -1.1
+float -1e1
+float 1e-1
+float -1e-1
+float 1.0e1
+float -1.0e-1
+
+integer 00
+integer 01
+integer 0123
+
+identifier blah