buchenglei / rust-simple-c-compiler

一个使用Rust实现的simple C的编译器

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

识别标识符时多了一个空白符

buchenglei opened this issue · comments

遇到空白符时,状态转移到了可接受状态,只有在识别下一个字符时,才能返回前一个token。
应该提前一个字符返回才对。

Commit 43645e1