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

EBNF-guided generation #203

Closed
tanvisharma opened this issue Feb 14, 2025 · 1 comment
Closed

EBNF-guided generation #203

tanvisharma opened this issue Feb 14, 2025 · 1 comment

Comments

@tanvisharma
Copy link

tanvisharma commented Feb 14, 2025

Hello,

I am trying to use xgrammar for one of my research projects. Is the EBNF-guided generation supported for any CFG represented in EBNF or are there any grammar constraints I should be aware of?

Thank you for your time! Looking forward to a response soon.

@tanvisharma tanvisharma reopened this Feb 14, 2025
@tanvisharma tanvisharma changed the title Error while using EBNF-guided generation EBNF-guided generation Feb 14, 2025
@Ubospica
Copy link
Collaborator

Hi @tanvisharma, now XGrammar theoretically supports any EBNF. Now left recursion (#126) is not supported, and the grammar had better not produce many non-deterministic stacks during parsing (see more in #127 (comment)). We are also enhancing our parser impl to further reduce the limitation.

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