重构 COStream 的前端, C => C++
- 词法分析, 传递
数字 | 字符串 | 特殊符号- 修改 any_white 的定义后, yylineno 在 repl 模式下能用了
- 增加了对字符串和 identifier 的识别,返回
std::string类型 - 十进制整数|八进制整数|十六进制整数 返回
integerConstant,数值类型通过stoll存为longlong - 浮点数返回
doubleConstant,数值类型通过strtod存为double
- 语法分析
- 摘抄移植 COStream 文法,修改的地方记录在了docs/7.delete-yacc.md中
- 能 make 通过了
- 调试 bug 完成
-
tests/wang.cos文法测试通过 -
tests/jepg.cos文法测试通过 -
VocoderTopLevel.cos文法测试通过
-
- 下一步工作
-
Li:handle_opt -
Yang:Node构建
-
效果:
