OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |