编译原理PL0源码(C语言版)

时间:2012-11-22 17:16:26
【文件属性】:

文件名称:编译原理PL0源码(C语言版)

文件大小:645KB

文件格式:ZIP

更新时间:2012-11-22 17:16:26

编译原理 PL0源码

编译原理PL0源码(C语言版) /*** PL0 COMPILER WITH CODE GENERATION ***/ //--------------------------------------------------------------------------- #include #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- const AL = 10; /* LENGTH OF IDENTIFIERS */ const NORW = 14; /* # OF RESERVED WORDS */ const TXMAX = 100; /* LENGTH OF IDENTIFIER TABLE */ const NMAX = 14; /* MAX NUMBER OF DEGITS IN NUMBERS */ const AMAX =2047; /* MAXIMUM ADDRESS */ const LEVMAX= 3; /* MAX DEPTH OF BLOCK NESTING */ const CXMAX = 200; /* SIZE OF CODE ARRAY */ typedef enum { NUL, IDENT, NUMBER, PLUS, MINUS, TIMES, SLASH, ODDSYM, EQL, NEQ, LSS, LEQ, GTR, GEQ, LPAREN, RPAREN, COMMA, SEMICOLON, PERIOD, BECOMES, BEGINSYM, ENDSYM, IFSYM, THENSYM, WHILESYM, WRITESYM, READSYM, DOSYM, CALLSYM, CONSTSYM, VARSYM, PROCSYM, PROGSYM } SYMBOL;


【文件预览】:
P9101.PL0
P9102.PL0
test1.pl0
T1.PL0
E0101.PL0
Unit1.dfm
P9104.PL0
T2.PL0
E01.PL0
PL0.PAS
PL01.tds
PL01.cpp
PL01.res
PL01.bpr
Unit1.h
PL01.dsk
Unit1.cpp

网友评论