代码搜索结果
找到约 10,000 项符合
L 的代码
mgllex.l
%{
#include "mglyac.h"
#include
extern int lineno;
%}
ws [ \t]+
comment #.*
qstring \"[^\"\n]*[\"\n]
id [a-zA-Z][a-zA-Z0-9]*
nl \n
%%
{ws} ;
{comment} ;
{q
paslex.l
%{
(* PASLEX.L: lexical analyzer for Pascal, adapted to TP Lex, 2-28-89 AG *)
%}
%{
(*
* lex input file for pascal scanner
*
* extensions: to ways to spell "external" and "->" ok for
lengs.l
%{
(* This is a Lex demonstration program taken from the UNIX manual which
which counts words in a file.
Usage: lengs
yreflex.l
%{
(* Lexical analyzer for the YREF program, V1.1 4-30-91 AG
implements a lexical analyzer for Yacc grammars *)
function yywrap : Boolean;
begin
yywrap := true; (* files are closed
digram.l
%{
(* Lex demonstration program for the use of the REJECT routine, taken from
the UNIX manual. This program produces a digram table of the input file
(counts all pairs of lowercase letter
exprlex.l
(* Lexical analyzer for the sample Yacc program in Expr.y. *)
L [A-Za-z]
D [0-9]
%%
var result : integer;
{D}+(\.{D}+)?([Ee][+-]?{D}+)? begin
val(yytext, yylval.yyReal,