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

BNF Parser specification #2

Open
andrevidela opened this issue Feb 4, 2024 · 0 comments
Open

BNF Parser specification #2

andrevidela opened this issue Feb 4, 2024 · 0 comments

Comments

@andrevidela
Copy link
Collaborator

andrevidela commented Feb 4, 2024

The current idris2 parser has no specification. The first step is to build one to properly track process and completion criteria.

Idris 2 syntax is stateful and therefore cannot be expressed fully using a context-free grammar. However, we can adjust the scope of this task by making operator resolution part of a subsequence desguaring phase, and avoid overloads such as = and **

Even though the parser has a lot of ambiguity built-in, it should be possible to parse raw strings and interporalted string by taking the implementation from Rust Tree sitter (for raw strings) and swift tree-sitter (for interpolated strings)

@andrevidela andrevidela changed the title Parser specification BNF Parser specification Feb 4, 2024
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