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

Side by Side Diff: src/sksl/sksl.flex

Issue 2408053002: Revert of Turned on SkSL->GLSL compiler (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/sksl/lex.sksl.c ('k') | src/sksl/sksl.include » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 2
3 This file is IGNORED during the build process! 3 This file is IGNORED during the build process!
4 4
5 As this file is updated so infrequently and flex is not universally pres ent on build machines, 5 As this file is updated so infrequently and flex is not universally pres ent on build machines,
6 the lex.sksl.c file must be manually regenerated if you make any changes to this file. Just run: 6 the lex.sksl.c file must be manually regenerated if you make any changes to this file. Just run:
7 7
8 flex sksl.flex 8 flex sksl.flex
9 9
10 You will have to manually add a copyright notice to the top of lex.sksl.c. 10 You will have to manually add a copyright notice to the top of lex.sksl.c.
(...skipping 12 matching lines...) Expand all
23 %% 23 %%
24 24
25 {DIGIT}*"."{DIGIT}+([eE][+-]?{DIGIT}+)? { return SkSL::Token::FLOAT_LITERAL; } 25 {DIGIT}*"."{DIGIT}+([eE][+-]?{DIGIT}+)? { return SkSL::Token::FLOAT_LITERAL; }
26 26
27 {DIGIT}+"."{DIGIT}*([eE][+-]?{DIGIT}+)? { return SkSL::Token::FLOAT_LITERAL; } 27 {DIGIT}+"."{DIGIT}*([eE][+-]?{DIGIT}+)? { return SkSL::Token::FLOAT_LITERAL; }
28 28
29 {DIGIT}+([eE][+-]?{DIGIT}+) { return SkSL::Token::FLOAT_LITERAL; } 29 {DIGIT}+([eE][+-]?{DIGIT}+) { return SkSL::Token::FLOAT_LITERAL; }
30 30
31 {DIGIT}+ { return SkSL::Token::INT_LITERAL; } 31 {DIGIT}+ { return SkSL::Token::INT_LITERAL; }
32 32
33 "0x"[0-9a-fA-F]+ { return SkSL::Token::INT_LITERAL; }
34
35 true { return SkSL::Token::TRUE_LITERAL; } 33 true { return SkSL::Token::TRUE_LITERAL; }
36 34
37 false { return SkSL::Token::FALSE_LITERAL; } 35 false { return SkSL::Token::FALSE_LITERAL; }
38 36
39 if { return SkSL::Token::IF; } 37 if { return SkSL::Token::IF; }
40 38
41 else { return SkSL::Token::ELSE; } 39 else { return SkSL::Token::ELSE; }
42 40
43 for { return SkSL::Token::FOR; } 41 for { return SkSL::Token::FOR; }
44 42
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 "<<" { return SkSL::Token::SHL; } 115 "<<" { return SkSL::Token::SHL; }
118 116
119 ">>" { return SkSL::Token::SHR; } 117 ">>" { return SkSL::Token::SHR; }
120 118
121 "|" { return SkSL::Token::BITWISEOR; } 119 "|" { return SkSL::Token::BITWISEOR; }
122 120
123 "^" { return SkSL::Token::BITWISEXOR; } 121 "^" { return SkSL::Token::BITWISEXOR; }
124 122
125 "&" { return SkSL::Token::BITWISEAND; } 123 "&" { return SkSL::Token::BITWISEAND; }
126 124
127 "~" { return SkSL::Token::BITWISENOT; }
128
129 "||" { return SkSL::Token::LOGICALOR; } 125 "||" { return SkSL::Token::LOGICALOR; }
130 126
131 "^^" { return SkSL::Token::LOGICALXOR; } 127 "^^" { return SkSL::Token::LOGICALXOR; }
132 128
133 "&&" { return SkSL::Token::LOGICALAND; } 129 "&&" { return SkSL::Token::LOGICALAND; }
134 130
135 "!" { return SkSL::Token::LOGICALNOT; } 131 "!" { return SkSL::Token::NOT; }
136 132
137 "?" { return SkSL::Token::QUESTION; } 133 "?" { return SkSL::Token::QUESTION; }
138 134
139 ":" { return SkSL::Token::COLON; } 135 ":" { return SkSL::Token::COLON; }
140 136
141 "=" { return SkSL::Token::EQ; } 137 "=" { return SkSL::Token::EQ; }
142 138
143 "==" { return SkSL::Token::EQEQ; } 139 "==" { return SkSL::Token::EQEQ; }
144 140
145 "!=" { return SkSL::Token::NEQ; } 141 "!=" { return SkSL::Token::NEQ; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 182
187 [ \t\r\n]+ /* whitespace */ 183 [ \t\r\n]+ /* whitespace */
188 184
189 . { return SkSL::Token::INVALID_TOKEN; } 185 . { return SkSL::Token::INVALID_TOKEN; }
190 186
191 %% 187 %%
192 188
193 int skslwrap(yyscan_t scanner) { 189 int skslwrap(yyscan_t scanner) {
194 return 1; // terminate 190 return 1; // terminate
195 } 191 }
OLDNEW
« no previous file with comments | « src/sksl/lex.sksl.c ('k') | src/sksl/sksl.include » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698