3 ms·
Fixed error in 046.l /* percent encode */ int fileno(FILE *); #define p(x,y) {putchar(37);putchar(x);putchar(y);} %option nounput noinput n
by 1vuio0pswjnm7 5y ago
Fixed error in 046.l
/* percent encode */
int fileno(FILE *);
#define p(x,y) {putchar(37);putchar(x);putchar(y);}
%option nounput noinput noyywrap
%%
\x20 p(50,48); /* space */
\x21 p(50,49); /* exclamation mark */
\x22 p(50,50); /* double quote */
\x23 p(50,51); /* pound sign */
\x24 p(50,52); /* dollar sign */
\x25 p(50,53); /* percent sign */
\x26 p(50,54); /* ampersand */
\x27 p(50,55); /* single quote */
\x28 p(50,56); /* opening parenthesis */
\x29 p(50,57); /* closing parenthesis */
\x2A p(50,42); /* asterisk */
\x2B p(50,43); /* plus sign */
\x2C p(50,44); /* comma */
\x2F p(50,47); /* forward slash */
\x3A p(51,65); /* colon */
\x3B p(51,66); /* semi-colon */
\x3C p(51,67); /* less than */
\x3D p(51,68); /* equals sign */
\x3E p(51,69); /* greater than */
\x3F p(51,70); /* question mark */
\x40 p(52,64); /* cuneiform */
\x5B p(53,91); /* opening bracket */
\x5C p(53,92); /* backslash */
\x5D p(53,93); /* closing bracket */
\x5E p(53,94); /* caret */
\x60 p(53,96); /* backquote */
\x7B p(53,123); /* opening brace */
\x7C p(53,124); /* vertical bar */
\x7D p(53,125); /* closing brace */
\15
%%
int main(){ yylex();exit(0);}