Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in parser #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Change in parser #4

wants to merge 1 commit into from

Conversation

OwenYing
Copy link

@OwenYing OwenYing commented Jul 7, 2016

计老师,您好! 我是07111306班的应天成1120131867

我发现了一些框架词法分析器的问题。
原本的词法分析器无法识别常量字符串,左移右移等单词,因此我用状态机的方法改进了该词法分析器,我用了更多的状态来让词法分析器能识别出更多的单词。
对于 “kkk”,框架识别为 “ 和 kkkk“ , 而我的程序可以正常识别成”kkk“。
还有对于浮点数的识别,和对于例如 1L 这种长整形数字的识别,我都进行了相关的改进。
但由于我不知道如何将自己的代码内嵌到您的框架中,所以就单独实现了您规定的借口,但并不能融入您的框架中。

祝好

 Original parser cannot recognize constant string ,like “aaa” , this
change use machine state to make recognize constant string, float , int
,shift left , shift right and etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant