thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Gresens (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (THRIFT-4156) Using boost spirit instead of lex and yacc
Date Tue, 04 Apr 2017 07:26:41 GMT

    [ 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)

Mime
View raw message