diff options
author | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-02 19:43:19 +0000 |
---|---|---|
committer | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-02 19:43:19 +0000 |
commit | 16796361d303fa80f00ef53b3382228fa38980fe (patch) | |
tree | 354228d6a5b3a718bbd20b6287aa5440d222cb1d /ppapi/generators/test_lex.in | |
parent | 1bfd03f4d81e40af457dce0c8a6df4308dedf849 (diff) | |
download | chromium_src-16796361d303fa80f00ef53b3382228fa38980fe.zip chromium_src-16796361d303fa80f00ef53b3382228fa38980fe.tar.gz chromium_src-16796361d303fa80f00ef53b3382228fa38980fe.tar.bz2 |
Update Lexer/Parser to support '#inline' and 'label'
Added the keyword 'label' to support versioning.
Added the token INLINE to capture blocks of text within
#inline XXX #endinl
Updated tests
TEST= python idl_lexer.py --test && python idl_parser.py --test
BUG= http://code.google.com/p/chromium/issues/detail?id=87684
Review URL: http://codereview.chromium.org/7272043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators/test_lex.in')
-rw-r--r-- | ppapi/generators/test_lex.in | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/ppapi/generators/test_lex.in b/ppapi/generators/test_lex.in index 31edfaa4..283a185 100644 --- a/ppapi/generators/test_lex.in +++ b/ppapi/generators/test_lex.in @@ -1,19 +1,27 @@ INT 1 INT 123 INT 12345 SYMBOL A123 SYMBOL A_A -COMMENT //abc -COMMENT // abc -COMMENT // abc -COMMENT //abc def - -COMMENT // abc def -COMMENT // abc def - - -COMMENT /*abc*/ COMMENT /* abc */ COMMENT /* abc - */ -COMMENT /* abc def */ COMMENT /* abc def -*/ COMMENT // abc def +COMMENT /*XXXX*/ +COMMENT //XXXX + +COMMENT /*MULTI LINE*/ + +[ [ +] ] +* * +. . +( ( +) ) +{ { +} } +[ [ +] ] +, , +; ; +: : += = ++ + +- - FLOAT 1.1 FLOAT 1e1 @@ -37,3 +45,14 @@ OCT 00 OCT 01 OCT 0123 +INLINE #inline C +This is an inline block. + +Contains /* Comments */ +Contains // Comments +Contains /* Multi-line + Comment */ + +#endinl +SYMBOL blah + |