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

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

Issue 2185393003: added initial GLSL support to skslc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed gn build Created 4 years, 4 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') | tests/SkSLGLSLTest.cpp » ('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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 uniform { return SkSL::Token::UNIFORM; } 61 uniform { return SkSL::Token::UNIFORM; }
62 62
63 const { return SkSL::Token::CONST; } 63 const { return SkSL::Token::CONST; }
64 64
65 lowp { return SkSL::Token::LOWP; } 65 lowp { return SkSL::Token::LOWP; }
66 66
67 mediump { return SkSL::Token::MEDIUMP; } 67 mediump { return SkSL::Token::MEDIUMP; }
68 68
69 highp { return SkSL::Token::HIGHP; } 69 highp { return SkSL::Token::HIGHP; }
70 70
71 flat { return SkSL::Token::FLAT; }
72
73 noperspective { return SkSL::Token::NOPERSPECTIVE; }
74
71 struct { return SkSL::Token::STRUCT; } 75 struct { return SkSL::Token::STRUCT; }
72 76
73 layout { return SkSL::Token::LAYOUT; } 77 layout { return SkSL::Token::LAYOUT; }
74 78
75 precision { return SkSL::Token::PRECISION; } 79 precision { return SkSL::Token::PRECISION; }
76 80
77 {LETTER}({DIGIT}|{LETTER})* { return SkSL::Token::IDENTIFIER; } 81 {LETTER}({DIGIT}|{LETTER})* { return SkSL::Token::IDENTIFIER; }
78 82
79 "#"{LETTER}({DIGIT}|{LETTER})* { return SkSL::Token::DIRECTIVE; } 83 "#"{LETTER}({DIGIT}|{LETTER})* { return SkSL::Token::DIRECTIVE; }
80 84
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 182
179 [ \t\r\n]+ /* whitespace */ 183 [ \t\r\n]+ /* whitespace */
180 184
181 . { return SkSL::Token::INVALID_TOKEN; } 185 . { return SkSL::Token::INVALID_TOKEN; }
182 186
183 %% 187 %%
184 188
185 int skslwrap(yyscan_t scanner) { 189 int skslwrap(yyscan_t scanner) {
186 return 1; // terminate 190 return 1; // terminate
187 } 191 }
OLDNEW
« no previous file with comments | « src/sksl/lex.sksl.c ('k') | tests/SkSLGLSLTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698