JSCPP icon indicating copy to clipboard operation
JSCPP copied to clipboard

解析模版语法

Open liuyanxing opened this issue 5 years ago • 1 comments

我想用pegjs解析模板语法,比如 vecotr v; 改了一下文法文件但是 < 始终被识别为小于符号。可以大概提供下思路吗,谢谢🙏

liuyanxing avatar Apr 04 '19 06:04 liuyanxing

这个语法你可以参考 https://www.nongnu.org/hcb/#template-declaration ,模仿这里面写的东西去修改 ast.peg。改完了记得重新build对应的peg文件。

felixhao28 avatar Apr 26 '19 07:04 felixhao28