Skip to content

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

@Y-Nak

Description

@Y-Nak

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions