aboutsummaryrefslogtreecommitdiff
path: root/compiler/syntax_error.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add character property expression (Meet RL1.2 of UTS #18 partially)Ryo Nihei2021-04-301-17/+20
| | | | | | | | | | \p{property name=property value} matches a character has the property. When the property name is General_Category, it can be omitted. That is, \p{Letter} equals \p{General_Category=Letter}. Currently, only General_Category is supported. This feature meets RL1.2 of UTS #18 partially. RL1.2 Properties: https://unicode.org/reports/tr18/#RL1.2
* Add code point expression (Meet RL1.1 of UTS #18)Ryo Nihei2021-04-241-0/+3
| | | | | | | | \u{hex string} matches a character has the code point represented by the hex string. For instance, \u{3042} matches hiragana あ (U+3042). The hex string must have 4 or 6 digits. This feature meets RL1.1 of UTS #18. RL1.1 Hex Notation: https://unicode.org/reports/tr18/#RL1.1
* Change the lexical specs of regexp and define concrete syntax error valuesRyo Nihei2021-04-171-0/+37
* Make the lexer treat ']' as an ordinary character in default mode * Define values of the syntax error type that represents error information concretely