为了将词法分析程序与语法分析程序串联起来,在Input类中定义了getSyntaxInput()方法,用来将token序列转换为可用语法分析程序使用的表达式,所有的token需要被自行转换为单个字符表示(具体字符由CFG决定),词法分析程序仅能分析程序已进行定义的符号(token序列的结果在tokenSequence.txt中),对于超出定义的符号可能产生错误。
-
Notifications
You must be signed in to change notification settings - Fork 0
yyy2015/SyntaxAnalysis
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
编译原理实验二,利用实验一中的词法分析程序产生的token序列进行语法分析
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published