首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
Best practices for writing a programming language parser
前端
未结
关注
7
1869
故里飘歌
2020-12-14 16:49
Are there any best practices that I should follow while writing a parser?
7条回答
时光取名叫无心
(楼主)
2020-12-14 17:31
Few pieces of advice:
Know your grammar - write it down in a suitable form
Choose the right tool. Do it from within C++ with Spirit2x, or choose external parser tools like antlr, yacc, or whatever suits you
Do you need a parser? Maybe regexp will suffice? Or maybe hack a perl script to do the trick? Writing complex parsers take time.
0
讨论(0)
查看其它7个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题