代码搜索结果
找到约 10,000 项符合
L 的代码
exolex.l
/* exolex.l - EXO library lexor */
/* SimpleScalar(TM) Tool Suite
* Copyright (C) 1994-2003 by Todd M. Austin, Ph.D. and SimpleScalar, LLC.
* All Rights Reserved.
*
* THIS IS A LEGAL DOCUMENT,
conf.l
%{
#include
#include
#include
#include "conf.tab.h"
%}
%%
[ \t]+ /* Ignore */;
\n { return TOKNEWLINE; }
#.*\n { return TOKNEWLINE; }
([0-9]{1,
lex.l
%{
#include "parser.h"
#include
#include
void getline(char *buf,int *num,int max_num);
#define YY_INPUT(buf,result,max_size) {\
getline(buf,&result,max_size
scanner.l
%{
#include
#include
#include "parser.tab.h"
%}
%%
[[:digit:]]+ { yylval.index = atoi(yytext); return TOK_INDEX; }
\"[^\"]*\" { size_t len = strlen(yytext)-2; char *b