文件名称:Lexer
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.24kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
该任务需要你为数学表达式构建一个单纯的语法分析程序lexer,它将一段输入的字符串转变为token(值),token(值)里每个字符都属于数学表达式的组成部分。我们想将token(值)定义为如下几种(1)计算符号,+,-.(2)字母和下划线 (3)数字,这三者先不需要仔细区分。-In this assignment, you will build a simple lexer for arithmetic expressions. A lexer breaks an put str g to tokens, each of which is a unit of the expression. We consider the follow g as tokens: (1) the symbols,+,--‐, ( and ), (2) variable name consist g of alpha--‐
umeric characters and underscore, and (3) teger numeric constants. You do not have to dist guish between the three k ds of tokens for now.
umeric characters and underscore, and (3) teger numeric constants. You do not have to dist guish between the three k ds of tokens for now.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lastassim.java
Lexer.java
Lexer.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.