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

C output? #2

Closed
dtaht opened this issue Mar 15, 2017 · 2 comments
Closed

C output? #2

dtaht opened this issue Mar 15, 2017 · 2 comments

Comments

@dtaht
Copy link

dtaht commented Mar 15, 2017

I am curious if this tool (or some other tool) could take a packet description like this of a more complex protocol and turn it into a streaming parser for a C based daemon, in addition to hardware?

(my intent was to write a packet parser for the babel routing protocol, I was looking over peg, ran across your paper, and here I am)

I rather like the descriptive language....

@grg
Copy link
Owner

grg commented Jun 13, 2017

Hi @dtaht,

My notifications were misconfigured and I only just discovered your message.

Right now this tool doesn't have the ability to generate C code.

I suggest that you take a look at the work being done by the P4 Language Consortium (http://p4.org). The P4 language has much richer constructs for describing parse graphs, although the language goes beyond just packet parsing. They also provide a compiler that will turn a P4 program into executable switch software.

Glen

Full disclosure: I'm currently employed by Barefoot Networks, and Barefoot is a member of the P4 Language Consortium.

@dtaht
Copy link
Author

dtaht commented Aug 28, 2017

thx. P4 was not quite powerful enough to do codel and fq when i'd last looked. I'll go catch up on it.

@dtaht dtaht closed this as completed Aug 28, 2017
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