代码搜索:Lex
找到约 2,769 项符合「Lex」的源代码
代码结果 2,769
www.eeworm.com/read/366121/9831680
cpp lex.cpp
#include
#include
#include
#include
#include
#include
#include "token.h"
#include "input.h"
#include "string.h"
#include "self_def.h"
www.eeworm.com/read/365074/9880095
c lex.c
#include "cmm.h"
int t; /*当前的标记*/
char *token; /*指向标示符*/
Coordinate src; /*标记的位置 */
Symbol tsym; /*指向临时符号存储的指针*/
static struct symbol tval; /*用于存储临时的符号*/
enum {BLANK=01,NEWLINE=02,LETTER=04,
D
www.eeworm.com/read/167325/9972597
lex estados.lex
1 0 a
2 0 a
3 1 b
4 0 a
5 1 c
6 0 a
7 1 d
8 1 e
9 1 f
10 1 g
11 1 h
12 1 i
13 1 j
14 0 a
15 1 k
16 1 l
17 1 m
18 0 a
19 1 n
20 1 o
21 0 a
22 1 x
23 1 y
24 1 p
25 1 q
26 1 r
2
www.eeworm.com/read/167325/9972609
lex producoes.lex
1 2 l
2 2 l
2 2 d
2 3 .
2 3 "
2 3 +
2 3 -
2 3 *
2 3 /
2 3 ~
2 3 =
2 3 <
2 3 >
2 3 ;
2 3 (
2 3 )
2 3 e
2 3 {
2 3 }
2 3 :
2 3 ,
2 3 i
2 3 s
2 3 n
1 4 d
4 4 d
4 33 .
33 33 d
3
www.eeworm.com/read/361386/10055659
lex tiger.lex
package Parse;
%%
%implements Lexer
%function nextToken
%type java_cup.runtime.Symbol
%{
private ErrorMsg.ErrorMsg errorMsg;
private void newline() { errorMsg.newline(yychar); }
// contatore an
www.eeworm.com/read/165020/10078768
l 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
%%
www.eeworm.com/read/163112/10175036
java lex.java
//---------------------------------------------------------
// 类描述: 词法分析,分离词法单词并返回单词类型,供语法分析程序调用
// 文件名: Lex.java
//---------------------------------------------------------
package cp;
impor
www.eeworm.com/read/163112/10175039
class lex.class
www.eeworm.com/read/424766/10414721
class lex.class
www.eeworm.com/read/424766/10414775
java lex.java
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PushbackReader;
import java.util.LinkedList;
/**
* @author li