文件名称:lexicalanalysis
-
所属分类:
- 标签属性:
- 上传时间:2013-12-18
-
文件大小:1.51kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
这是一个training语言的词法分析程序,可以对输入的字符串流进行词法分析。(1)可以输入所给文法的源程序的字符串;(2)程序的输出形式为单词串的输出形式;(3)可以测试源程序片段 1.关键字:
function if then while do endfunc
2.专用符号:
= + - * / <<= != >>= == () #
3.其它的单词是标示符(id)和整型常数(num)由下述正规式定义
id=letter(letter|digit)*
num=digit digit*
letter=a |...|z|A|....|Z
digit=0|...|9
-This is a training program language lexical analysis can be performed on the input string stream lexical analysis. (1) You can enter a string given the source of grammar output form (2) procedures for the output in the form of word strings (3) to test the source clip a keyword:. Function if then while do endfunc 2. special symbols: =+-*/< < = = > > === ()# 3 is another word identifier (id) and integer constants (num) is defined by the following regular id = letter (!. letter | digit)* num = digit digit* letter = a | ... | z | A | .... | Z digit = 0 | ... | 9
function if then while do endfunc
2.专用符号:
= + - * / <<= != >>= == () #
3.其它的单词是标示符(id)和整型常数(num)由下述正规式定义
id=letter(letter|digit)*
num=digit digit*
letter=a |...|z|A|....|Z
digit=0|...|9
-This is a training program language lexical analysis can be performed on the input string stream lexical analysis. (1) You can enter a string given the source of grammar output form (2) procedures for the output in the form of word strings (3) to test the source clip a keyword:. Function if then while do endfunc 2. special symbols: =+-*/< < = = > > === ()# 3 is another word identifier (id) and integer constants (num) is defined by the following regular id = letter (!. letter | digit)* num = digit digit* letter = a | ... | z | A | .... | Z digit = 0 | ... | 9
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lexicalanalysis.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.