[
https://issues.apache.org/jira/browse/THRIFT-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15954705#comment-15954705
]
Mike Gresens commented on THRIFT-4156:
--------------------------------------
How does a boost spirit parser look like?
You can have a look in the attached files.
It's from a prototype - incomplete.
But you can see the basic concepts.
The parser consumes a stream and produces an AST.
> Using boost spirit instead of lex and yacc
> ------------------------------------------
>
> Key: THRIFT-4156
> URL: https://issues.apache.org/jira/browse/THRIFT-4156
> Project: Thrift
> Issue Type: Improvement
> Components: Compiler (General)
> Reporter: Mike Gresens
> Attachments: ast.hpp, parser.cpp
>
>
> As a developer I want to use boost spirit to get rid of lex and yacc.
> This kicks dependency to lex, flex, yacc, bison or what ever.
> This makes building easier, because only c++ code must be compiled.
> All grammar is inside the code - all c++. No need to learn ll and yy.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)