![]() It can reference variable text, which contains the string matched by token pattern. Semantic value, which is enclosed in braces, is an expression in the target language. Token names must begin with a lowercase ASCII letter or the underscore character _, and contain only ASCII letters, digits and the underscore character. If the first character of is ?, then the pattern is interpreted as non-greedy, consequently lexer will return the shortest match instead of the longest one (which is the default). The first form contains token name, which can be referenced in grammar, and token pattern defined by a regular expression (between slashes), and token semantic value, which is an expression in the target language (optional).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |