thrift-dev mailing list archives

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


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:
>             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

View raw message