Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 343 Bytes

File metadata and controls

21 lines (10 loc) · 343 Bytes

sysY保留字

int/float/const

void

if/while/break/continue/return

+/-/*///%

==/!=/</>/<=/>=

!/&&/||

///**/

为了报告错误所在的位置,需要在读入的时候实时维护一个行号变量。

一次扫描查出所有错误,那就是说遇到错误之后继续扫描下一个单词(空格)?