代码搜索结果
找到约 10,000 项符合
L 的代码
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,
magic.l
%{
(* Lex demonstration program for the use of start states, taken from the UNIX
manual. This program copies standard input to standard output, and changes
the word `magic' to `first', `s