#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
nVidia开发的图形语言 Cg,用于进行顶点渲染和象素渲染,语法类似于 C。-nVidia graphics development of the Cg language, used for pixel and vertex exaggerated exaggerated, similar to the C syntax.
编译原理大作业---tiger编译器
包括semant,translate,mipsframe,regalloc等所有phase
懂的人自会知道-Compilation Principle big operation--- tiger compiler including semant, translate, mipsframe, regalloc all those who understand phase will know
目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pascal子集语言的语法分析器。 功能:程序由两个模块LEX和YACC构成,YACC使用LEX分析后的正规单词输出流-Objective : to prepare a simple procedure with YACC YACC lexical analysis of the basic tools to use, and the lexical analyzer designs. Preparation including assignment if statements containing Addition and multiplication of expressions such as grammatical structure of the pascal subset of the language syntax analyzer. Function : procedures by the two modules constitute LEX and YACC, YACC LEX analysis using the formal word output streams