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

Use proper (lexer) and parser #31

Open
sayanarijit opened this issue Sep 5, 2020 · 1 comment
Open

Use proper (lexer) and parser #31

sayanarijit opened this issue Sep 5, 2020 · 1 comment

Comments

@sayanarijit
Copy link
Owner

This module is getting complicated. So far I've avoided using lexers and parsers to keep things simple.
However, I think it's time we dive into these advanced concepts.

TIP: See if we can avoid implementing our own lexer by using regex (I think we can) but without complicating things.

@sayanarijit
Copy link
Owner Author

Rust has a very good library called nom that lets us implement our own parser using a very intuitive API. Let's try using that. See pydantic-core for Rust-Python interop reference.

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

1 participant