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

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

Issue 2372773002: 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-zA-Z]+ { 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 182
185 [ \t\r\n]+ /* whitespace */ 183 [ \t\r\n]+ /* whitespace */
186 184
187 . { return SkSL::Token::INVALID_TOKEN; } 185 . { return SkSL::Token::INVALID_TOKEN; }
188 186
189 %% 187 %%
190 188
191 int skslwrap(yyscan_t scanner) { 189 int skslwrap(yyscan_t scanner) {
192 return 1; // terminate 190 return 1; // terminate
193 } 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