Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解析模版语法 #44

Open
liuyanxing opened this issue Apr 4, 2019 · 1 comment
Open

解析模版语法 #44

liuyanxing opened this issue Apr 4, 2019 · 1 comment

Comments

@liuyanxing
Copy link

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

@felixhao28
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants