代码搜索:L
找到约 10,000 项符合「L」的源代码
代码结果 10,000
www.eeworm.com/read/467684/6999986
png l.png
www.eeworm.com/read/467482/7004084
gif l.gif
www.eeworm.com/read/467628/7006141
l ckeyword.l
%{
/* Recognising ckeyword
*/
#include
%}
%%
[\t ]+
auto |
break |
char |
case |
const |
continue |
default |
do |
double |
else |
does |
enum |
extern |
float |
goto |
int |
long |
registe
www.eeworm.com/read/467628/7006142
l 5.l
%{
#include
%}
%%
[1-9][0-9][0-9]([0]|[5]) {printf("divisible by 5");}
. {}
%%
int yywrap(void)
{
return 1;
}
int main(void)
{
yylex();
return 0;
}
www.eeworm.com/read/467628/7006143
l cidentifier.l
%{
/* example for verb and article
*/
%}
#include
%%
[\t ]+
auto
break |
char |
case |
const |
continue |
default |
do |
double |
else |
does |
enum |
extern |
float |
for |
goto |
if |
int
www.eeworm.com/read/467628/7006144
l file.l
%{
#include
%}
%%
auto |
break |
case |
char |
const |
continue |
default |
do |
double |
else |
enum |
extern |
float |
for |
goto |
if |
int |
long |
register |
return |
short |
signed
www.eeworm.com/read/467628/7006145
l identifier.l
%{
#include
%}
%%
[0-9]+[_]*[a-zA-Z]* printf("It is not an identifier\n",yytext);
[_]*[a-zA-Z]*[_]*[a-zA-Z0-9]* printf("It is a identifier\n",yytext);
%%
www.eeworm.com/read/467628/7006147
l float.l
%{
#include
%}
%%
[0-9]*[.][0-9]+ printf("%s is float number",yytext);
[0-9]+ printf("%s is not a float number",yytext);
[.]+ printf("%s is not a valid input",yytext);
%%
www.eeworm.com/read/467628/7006149
l 1.l
%%
%%
int yywrap(void) { return 1; }
int main(void)
{
yylex();
return 0;
}
www.eeworm.com/read/467628/7006151
l cal.l
%{
#include
#include
#include
#include
#define YYSTYPE double
#include "y.tab.h"
extern YYSTYPE yylval;
%}
digit [0-9]
space [ \t]
%%
{space}