You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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
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:
sonatina.pest
file.Benefits:
func %my_crate::module::foo
).The text was updated successfully, but these errors were encountered: