91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 142KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-04
  • 語言: 其他
  • 標(biāo)簽:

資源簡介

這是課程實驗做的詞法分析器和語法分析器的生成器,即生成縮減版Lex及Yacc的工具

資源截圖

代碼片段和文件信息


#include
#include
#include
#include
#include“c.h“
using?namespace?std;
const?int?START=0;
const?int?ERROR=32767;

int?analysis(char?*strint?n)
{
int?state=START;
int?N=n+1;//N表示串長加1為與狀態(tài)數(shù)保持一致。
for(int?i=0;i {
switch(state)
{
case?112:
{
if(i==N-1)
{
return?IDENTIFIER;
break;
}
if(str[i]==‘r‘)
{
state=128;
break;
}
if(str[i]==‘a(chǎn)‘)
{
state=40;
break;
}
if(str[i]==‘b‘)
{
state=40;
break;
}
if(str[i]==‘c‘)
{
state=40;
break;
}
if(str[i]==‘d‘)
{
state=40;
break;
}
if(str[i]==‘e‘)
{
state=40;
break;
}
if(str[i]==‘f‘)
{
state=40;
break;
}
if(str[i]==‘g‘)
{
state=40;
break;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????339688??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuLex\c.cpp

?????文件????????854??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuLex\c.h

?????文件???????2831??2008-09-05?15:09??可執(zhí)行文件及輸入輸出文件\SeuLex\c.l

?????文件?????606256??2008-09-05?15:12??可執(zhí)行文件及輸入輸出文件\SeuLex\SEULex.exe

?????文件???????1318??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuYacc\ActionTable.txt

?????文件???????5422??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuYacc\ItemSet.txt

?????文件????????463??2008-09-05?14:23??可執(zhí)行文件及輸入輸出文件\SeuYacc\minic.y

?????文件?????192512??2008-09-05?14:24??可執(zhí)行文件及輸入輸出文件\SeuYacc\SEUYacc.exe

?????文件??????12577??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuYacc\Yacc.cpp

?????目錄??????????0??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuLex

?????目錄??????????0??2008-09-05?16:30??可執(zhí)行文件及輸入輸出文件\SeuYacc

?????目錄??????????0??2008-09-05?16:29??可執(zhí)行文件及輸入輸出文件

-----------?---------??----------?-----??----

??????????????1161921????????????????????12


評論

共有 條評論