代码搜索结果
找到约 10,000 项符合
L 的代码
mylex.l
%{
#include
#include
#include
#include
#define false 0
#define ture 1
#include "myYacc.tab.h"
extern int lexverbose;
extern int linecount;
%}
digit
2.l
{this is a sample programme writing in simple language}
program example;
{used for illustrating compiling process}
var
a,b,c:integer;
x:char;
begin
if(a+c*3>b) and (b>3) then c:=3;
x:=2+(3
lex.l
WS [ \n\t]+
LT [A-Za-z]
KR [A-Za-z0-9_\[\]\{\}/.$%~'@^]
DI [0-9]
NM {DI}*\.?{DI}+([Ee][-+]?{DI}+)?
VR {LT}{KR}*()?
S_OP [-+ \t\n]+
LOG []?=?
%start COMMENT
%%
l.asm
data segment
table db 10 dup(?)
table1 db 'PLEASE INPUT 0-3:$'
table2 db '1:BLOCK 2:LIFT TRIANGLE 3:RIGHT TRIANGLE 0:exit$'
table3 db 'WARNING:PLEASE INPUT 0-3$'
data ends
code segment
ass