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