| 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 12 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |