uiuc-focal-lab / syncode

Efficient and general syntactical decoding for Large Language Models
MIT License
190 stars 16 forks source link

Do you support earley parser? #118

Open benjamin12342 opened 1 week ago

benjamin12342 commented 1 week ago

Like this parser = Lark(ocaml_grammar, start='start', parser='lr') but i check that only support LR and LALR?

shubhamugare commented 1 week ago

Hi,

At this point, we don't have Earley parser support.

Since the Lark parser code we forked has Earley parser support, it should be possible to add this without too much work. If anyone is interested in working on it, feel free to create a PR.