")//数字#defineis_num(c)(c>="0"&&c<="9")          #definetokSTRING-2#definetokNUM  -3-IMDN开发者社群-imdn.cn"> ")//数字#defineis_num(c)(c>="0"&&c<="9")          #definetokSTRING-2#definetokNUM  -3 - IMDN开发者社群-imdn.cn">
登录
首页 » 算法 » 词法分析器

词法分析器

于 2023-01-10 发布 文件大小:1.84 kB
0 140
下载积分: 2 下载次数: 1

代码说明:

//分割符号 #define is_end(c) (c=="{"||c=="}"||c=="("||c==")"||c=="["||c=="]"||c==","||c==";") //表达式符号 #define is_exp(c) (c=="&"||c=="|"||c=="!" || c=="=" || c=="+"||c=="-"||c=="*"||c=="/" || c=="") //数字 #define is_num(c) (c>= "0"&&c

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 飞思卡尔摄像头串口调试程序
    OV7620摄像头数据采集 硬件配置说明:                                                         *摄像头位数据位 - PORTD0~7                                 *PCLK - PORTC0                                             *行中断 - PORTA29                                          *场中断 - PORTB0                                           *图像数据输出 - K60串口1,波特率115200                     *添加说明:  我们
    2022-05-23 16:30:30下载
    积分:1
  • 基于lms的系统辨识的matlab仿真有点小问题
    基于lms的系统辨识的matlab仿真有点小问题-Based on the LMS system identification of the matlab simulation a bit small problem
    2022-10-18 20:30:03下载
    积分:1
  • Procedures are given deformation QR method with real symmetric triangular matrix...
    程序中给出了用变形QR方法计算实对称三角阵的全部特征值与相应的向量-Procedures are given deformation QR method with real symmetric triangular matrix of all eigenvalues with the corresponding vector
    2022-12-29 05:15:03下载
    积分:1
  • 简单的讲,所谓拟合是指已知某函数的若干离散函数值{f1,f2,…,fn},通过调整该函数中若干待定系数f(λ1, λ2,…,λ3), 使得该函数与已知点集的差别...
    简单的讲,所谓拟合是指已知某函数的若干离散函数值{f1,f2,…,fn},通过调整该函数中若干待定系数f(λ1, λ2,…,λ3), 使得该函数与已知点集的差别(最小二乘意义)最小。如果待定函数是线性,就叫线性拟合或者线性回归(主要在统计中),否则叫作非线性拟合或者非线性回归。表达式也可以是分段函数,这种情况下叫作样条拟合。-Simply speaking, the so-called fitting refers to a function known to a number of discrete function values (f1, f2, ..., fn), by adjusting the number of undetermined coefficient function f (λ1, λ2, ..., λ3), makes the function and known points of difference (least squares significance) the smallest. To be determined if the function is linear, is called linear regression or linear regression (mainly in the statistics), otherwise known as non-linear fitting, or nonlinear regression. Expressions can also be a sub-function, this case is called spline fitting.
    2022-02-03 20:04:37下载
    积分:1
  • Prolog实现8-puzzle
    he 8-puzzle will be represented by a 3x3 list of lists positions where the empty box will be represented by the value 9, as shown below: [[9,1,3],[5,2,6],[4,7,8]] Possibility Solution: Only half of the initial positions of the 8-puzzle are solvable. There is a formula that allows to know from the beginning if you can solve the puzzle.To determine whether an 8-puzzle is solvable, for each square containing a value N is calculated how many numbers less than N there after the current cell. For example, to the initial status
    2023-07-26 11:40:02下载
    积分:1
  • VC迷宫代码
    这是VC迷宫的代码,写的很整洁,非常的好,下载了即使可以用,声音什么的没有设置
    2022-04-24 08:51:30下载
    积分:1
  • C++实现离散数学中对称矩阵的判断。6行6列的矩阵,闲来无事,用VC++写一个小程序,判断是否是配对矩阵,很有意思哦!...
    C++实现离散数学中对称矩阵的判断。6行6列的矩阵,闲来无事,用VC++写一个小程序,判断是否是配对矩阵,很有意思哦!-C++ realization of discrete mathematics in the symmetric matrix judgments. 6 row 6 of the matrix, nothing better, using VC++ to write a small program to determine whether the matching matrix, very interesting oh!
    2022-01-25 14:58:01下载
    积分:1
  • 简单的试探走迷宫
    简单的试探法走迷宫--The simple trial method that walks the labyrinth
    2022-06-17 08:26:25下载
    积分:1
  • 模型 predective lineair
    #include < stddef.h > / * NULL * / #include"mpc.h" / * FIXME: 这是一个肮脏的修复程序 HOR_MXCONSTRS 零长度数组问题的 * / STATE_CONSTR #ifdef #define NO_MXCONSTR 0 #else #define NO_MXCONSTR 1 #endif / * 静态函数声明 * / 静态 void inc_ref_ctl_solve_problem (结构 mpc_ctl * ctl,const real_t x[]) ; 静态 void stc_ref_ctl_solve_problem (结构 mpc_ctl * ctl,const real_t x[]) ; 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-02-28 03:25:03下载
    积分:1
  • BBS论坛uml
    BBS论坛主要是用来在网上交流意见的,有人提出一个问题或者见解,其他人可以针对不同的方面提出自己的想法并发表自己的见解。但是为了保证论坛的安全性,不是任何人都可以发表帖子和回复帖子的,必须以会员的身份登录到系统后,才能发表和回复帖子。因此BBS论坛将用户划分为4类:普通游客、普通会员、版主、管理员。
    2023-09-07 15:00:04下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载