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

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

Issue 2288033003: Turned on SkSL->GLSL compiler (Closed)
Patch Set: changed <iostream> to <ostream> 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
33 true { return SkSL::Token::TRUE_LITERAL; } 35 true { return SkSL::Token::TRUE_LITERAL; }
34 36
35 false { return SkSL::Token::FALSE_LITERAL; } 37 false { return SkSL::Token::FALSE_LITERAL; }
36 38
37 if { return SkSL::Token::IF; } 39 if { return SkSL::Token::IF; }
38 40
39 else { return SkSL::Token::ELSE; } 41 else { return SkSL::Token::ELSE; }
40 42
41 for { return SkSL::Token::FOR; } 43 for { return SkSL::Token::FOR; }
42 44
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "<<" { return SkSL::Token::SHL; } 117 "<<" { return SkSL::Token::SHL; }
116 118
117 ">>" { return SkSL::Token::SHR; } 119 ">>" { return SkSL::Token::SHR; }
118 120
119 "|" { return SkSL::Token::BITWISEOR; } 121 "|" { return SkSL::Token::BITWISEOR; }
120 122
121 "^" { return SkSL::Token::BITWISEXOR; } 123 "^" { return SkSL::Token::BITWISEXOR; }
122 124
123 "&" { return SkSL::Token::BITWISEAND; } 125 "&" { return SkSL::Token::BITWISEAND; }
124 126
127 "~" { return SkSL::Token::BITWISENOT; }
128
125 "||" { return SkSL::Token::LOGICALOR; } 129 "||" { return SkSL::Token::LOGICALOR; }
126 130
127 "^^" { return SkSL::Token::LOGICALXOR; } 131 "^^" { return SkSL::Token::LOGICALXOR; }
128 132
129 "&&" { return SkSL::Token::LOGICALAND; } 133 "&&" { return SkSL::Token::LOGICALAND; }
130 134
131 "!" { return SkSL::Token::NOT; } 135 "!" { return SkSL::Token::LOGICALNOT; }
132 136
133 "?" { return SkSL::Token::QUESTION; } 137 "?" { return SkSL::Token::QUESTION; }
134 138
135 ":" { return SkSL::Token::COLON; } 139 ":" { return SkSL::Token::COLON; }
136 140
137 "=" { return SkSL::Token::EQ; } 141 "=" { return SkSL::Token::EQ; }
138 142
139 "==" { return SkSL::Token::EQEQ; } 143 "==" { return SkSL::Token::EQEQ; }
140 144
141 "!=" { return SkSL::Token::NEQ; } 145 "!=" { return SkSL::Token::NEQ; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 186
183 [ \t\r\n]+ /* whitespace */ 187 [ \t\r\n]+ /* whitespace */
184 188
185 . { return SkSL::Token::INVALID_TOKEN; } 189 . { return SkSL::Token::INVALID_TOKEN; }
186 190
187 %% 191 %%
188 192
189 int skslwrap(yyscan_t scanner) { 193 int skslwrap(yyscan_t scanner) {
190 return 1; // terminate 194 return 1; // terminate
191 } 195 }
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