This PR replaces the given [...]-syntax by a new syntax Char<...> for the following reasons:
The [...] syntax should become valid to specify lists (#100)
Tokay is by-design a programming language, not a parser generator. The usage of character-class definitions is generally kept low, so the tradeoff is clear; Lists will be defined and used more often than character-classes.
The new Char keyword underlines the future support of generics; A Char is generally any character. A Char<...> is an specialization for specific characters only. As this feature is built-in and generates statics, having its own syntax is valid.
This PR substitutes...
... the syntax [...] by Char<...>
... the . previously specifying any character by Char
... the Any builtin token by Char
It generally cleans up the concept of characters and character-classes in the Tokay language.
This PR replaces the given
[...]
-syntax by a new syntaxChar<...>
for the following reasons:[...]
syntax should become valid to specify lists (#100)Char
keyword underlines the future support of generics; AChar
is generally any character. AChar<...>
is an specialization for specific characters only. As this feature is built-in and generates statics, having its own syntax is valid.This PR substitutes...
[...]
byChar<...>
.
previously specifying any character byChar
Any
builtin token byChar
It generally cleans up the concept of characters and character-classes in the Tokay language.