grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

ANTLR grammar for eBPF assembly?

Open Alan-Jowett opened this issue 2 years ago • 1 comments

Before I make the effort to write a grammar for parsing Intel style assembly for eBPF, I was wondering if there is already one available?

Goal: I need a grammar parser for eBPF instructions in Intel style assembly for an ISA conformance test suite. I have a hand-rolled one, but a spec in antlr grammar would be better as it help bring some form of agreement on what the mnemonics etc. should be.

Alan-Jowett avatar Dec 01 '22 16:12 Alan-Jowett

There isn't one in grammars-v4. It would certainly be welcome.

teverett avatar Dec 03 '22 17:12 teverett