搜索资源列表
cifa
- 用C语言编写的一个简单的词法分析器 词法分析程序,能识别出所有的关键字、标识符、常数、运算符(包括复合运算符,如++)、界符 能过滤掉源程序中的注释、空格、制表符、换行符 并且能够对一些词法... -A simple C language lexical analyzer lexical analysis program can identify all keywords, identifiers, constants, operators (including composite op
CP_test_1
- 编译原理实验 词法分析 一、实验目的: 通过设计编制调试一个具体的词法分析程序,加深对词法分析原理的理解。并掌握在对程序设计语言源程序进行扫描过程中将其分解为各类单词的词法分析方法。 二、实验内容 编制一个能够分析整数、小数、字符串、标识符、分隔符、运算符和关键字的词法分析程序。同时要能过滤行注释和块注释。 三、实验要求 1、词法规则 关键字: if、then、else、while、do、int、float、string、begin、en
cifafenxiqi
- 处理C语言程序,过滤掉无用内容,判断源程序中单词的合法性,并分解出正确的单词,以二元组形式放在文件中。(Deal with C language program, filter out the useless content, judge the validity of the word in the source program, and decompose the correct word, put it into the file in the form of two tuples)