- chazhaodianhuahaoma 查找电话号码的算法.采用C语言编写.语言简单明白.
- resize Suppose you wanted to give the user the ability to modify the size and position on a certain control? This example shows how to implement resizing controls on a dialog box as it is done when drawing controls on a dialog template or visual basic at design time. In order to accomplish this we can use the class CRectTracker to manage all the drawing and resizing of a rectangular frame which also has (optional) 6 handlers (as shown in the image above). The first thing
- dongtaishuzu 动态数组用法的VC源程序
- python_yanzhengma 使用python写的简单验证码识别程序
- WORDGen 利用VBA在VC中自动调用生成WORD文档
- html5-api html5参考手册(chm): 从零开始学HTML网站制作和网站建设基础教程
文件名称:YFFXQ
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:190.25kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用递归子程序法设计一个语法分析程序,自顶向下分析方法.
1、使用递归下降分析算法分析表达式文法:
exp ::= exp addop term | term
addop ::= + | -
term ::= term mulop factor | factor
mulop ::= * | /
factor ::= (exp) | number
其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。
2、该词法分析器以子程序形式出现,当需要进行词法分析时进行调用;
3、能够识别正确和错误的表达式;
4、在进行语法分析的过程中,计算输入表达式的值。
-Recursive subroutine method to design a syntax analysis program, top-down analysis. 1, using recursive descent parsing algorithm analysis of the expression grammar: exp:: = exp addop term | term addop:: =+ |- term:: = term mulop factor | factor mulop:: =* |/factor:: = (exp) | number of which is the number of decimal number can number string (integer can be), so here also need a small lexical analyzer to get the number value. 2, the lexical analyzer in subroutine form, when the need for lexical analysis of a call 3, able to recognize right and wrong expression 4, during the course of parsing, calculating import value of the expression.
1、使用递归下降分析算法分析表达式文法:
exp ::= exp addop term | term
addop ::= + | -
term ::= term mulop factor | factor
mulop ::= * | /
factor ::= (exp) | number
其中number可以是多位的十进制数字串(整数即可),因此这里还需要一个小的词法分析器来得到number的值。
2、该词法分析器以子程序形式出现,当需要进行词法分析时进行调用;
3、能够识别正确和错误的表达式;
4、在进行语法分析的过程中,计算输入表达式的值。
-Recursive subroutine method to design a syntax analysis program, top-down analysis. 1, using recursive descent parsing algorithm analysis of the expression grammar: exp:: = exp addop term | term addop:: =+ |- term:: = term mulop factor | factor mulop:: =* |/factor:: = (exp) | number of which is the number of decimal number can number string (integer can be), so here also need a small lexical analyzer to get the number value. 2, the lexical analyzer in subroutine form, when the need for lexical analysis of a call 3, able to recognize right and wrong expression 4, during the course of parsing, calculating import value of the expression.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
语法分析器/语法分析器.dsp
语法分析器/语法分析器.dsw
语法分析器/语法分析器.plg
语法分析器/语法分析.ncb
语法分析器/语法分析.plg
语法分析器/语法分析器.ncb
语法分析器/语法分析器.opt
语法分析器/Debug/vc60.idb
语法分析器/Debug/vc60.pdb
语法分析器/Debug/语法分析.pch
语法分析器/Debug/语法分析.obj
语法分析器/Debug/语法分析.pdb
语法分析器/Debug/语法分析.exe
语法分析器/Debug/语法分析.ilk
语法分析器/语法分析.dsp
语法分析器/语法分析.c
语法分析器/语法分析.opt
语法分析器/语法分析.dsw
语法分析器/Debug
语法分析器
语法分析器/语法分析器.dsw
语法分析器/语法分析器.plg
语法分析器/语法分析.ncb
语法分析器/语法分析.plg
语法分析器/语法分析器.ncb
语法分析器/语法分析器.opt
语法分析器/Debug/vc60.idb
语法分析器/Debug/vc60.pdb
语法分析器/Debug/语法分析.pch
语法分析器/Debug/语法分析.obj
语法分析器/Debug/语法分析.pdb
语法分析器/Debug/语法分析.exe
语法分析器/Debug/语法分析.ilk
语法分析器/语法分析.dsp
语法分析器/语法分析.c
语法分析器/语法分析.opt
语法分析器/语法分析.dsw
语法分析器/Debug
语法分析器
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
