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

Allow Non-Alphabetic Characters in Function, Global Variable, and Struct Type Names #90

Open
Y-Nak opened this issue Nov 26, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed parser

Comments

@Y-Nak
Copy link
Collaborator

Y-Nak commented Nov 26, 2024

Currently, the parser restricts the characters allowed in the names of functions, global variables, and struct types to alphanbetic characters, numbers and underscores (_). We propose removing this limitation to allow a broader set of characters. Specifically, we want the parser to accept any character excluding delimiter characters(e.g., whitespace or newlines) in these names.

Proposed Solution:

  • Grammar Update:
    • Modify sonatina.pest file.

Benefits:

  • Improved Expressiveness:
    • Allows for more descriptive and meaningful names by including symbols and special characters(especially it's useful to describe namespace in frontend language, e.g., func %my_crate::module::foo).
@Y-Nak Y-Nak added help wanted Extra attention is needed good first issue Good for newcomers parser labels Nov 26, 2024
@Y-Nak Y-Nak changed the title Allow Non-Alphanumeric Characters in Function, Global Variable, and Struct Type Names Allow Non-Alphabetic Characters in Function, Global Variable, and Struct Type Names Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed parser
Projects
None yet
Development

No branches or pull requests

1 participant