#include "define.h"
#include
#include
#include
#include
FILE *fp
/*//////////////////////////////////////////////////////////////////////////////
This is a pretreatment.
/////////////////////////////////////////////////////////////////////////////*/
void readIntoBuffer(char buffer[256])
{
char ch1
char temp
int i
for(i=0 i
算符优先语法分析器,根据算符优先分析法,将表达式进行语法分析,判断一个表达式是否正确。-operator priority syntax analyzer, according to operator priority analysis, expression for syntax analysis, judgment, an expression is correct.
一个程序,用于判定给定的文法是否为LL(1)文法。 实现了:1.文法的机内表示;2. FIRST集和FOLLOW集的计算; 3. LL(1)预测分析表的构造。-a procedure for the determination of grammar to whether LL (1) grammar. Realized : 1. Grammar said the machines; 2. FIRST FOLLOW sets and set computing; 3. LL (1) Forecast and Analysis table structure.
本人自己改进过的帧间差分方法,并且调试过,对于学习车辆检测算法的朋友,有些帮助-I own improved interframe difference method, and debugging, the vehicle detection algorithm for learning friends, and some help
SLR的语法分析器,VC6.0编译器通过,输入输出的文件名详见代码,输出文件中的分析过程和编译原理课本要求类似,根据不同的句子可能需要重新调整对齐格式-A SLR parser, built by MS VC 6.0, an assignment of my Compiler Principles course