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

Indentation-Based Grammars #28

Open
Eliah-Lakhin opened this issue Oct 12, 2024 · 0 comments
Open

Indentation-Based Grammars #28

Eliah-Lakhin opened this issue Oct 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature proposal

Comments

@Eliah-Lakhin
Copy link
Owner

Currently, Lady Deirdre does not natively support indentation-based grammars. Since such a lexer is inherently context-sensitive, it may be best implemented as an intermediate analysis layer between raw token scanning and syntax parsing.

One possible approach for tracking indentation could leverage the existing LineIndex object, or at least use it as a foundation.

However, indentation-based grammars are often specific to each language. The final solution should be flexible and not overly restrictive or domain-specific. It should offer configuration options that cover a wide range of end-user needs, while seamlessly integrating into the existing LD architecture without introducing breaking changes.

This issue is a long-term goal that requires further preliminary research.

For prior discussion, see issue #4.

@Eliah-Lakhin Eliah-Lakhin added the enhancement New feature proposal label Oct 12, 2024
@Eliah-Lakhin Eliah-Lakhin self-assigned this Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature proposal
Projects
Status: Todo
Development

No branches or pull requests

1 participant