aboutsummaryrefslogtreecommitdiff
path: root/spec/lexer_test.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* Add a column number to an error messageRyo Nihei2021-08-221-5/+5
* Support %left and %right to specify precedences and associativitiesRyo Nihei2021-08-221-1/+2
* Add a token position and detailed info to a lexical error messageRyo Nihei2021-07-281-1/+5
* Add literal pattern syntax and change tree structure syntax•••- Literal patterns don't interpret the special characters of regular expressions. In other words, 'abc|def' matches only `abc|def`, not `abc` or `def`. - Change tree structure syntax from '(...) to #(...). Ryo Nihei2021-07-221-2/+13
* Add a line number to token error messagesRyo Nihei2021-07-171-2/+14
* Add a line number to error messagesRyo Nihei2021-07-161-29/+45
* Prohibit defining identifiers beginning with an underscore•••Identifiers beginning with an underscore are used as auto-generated identifiers. Ryo Nihei2021-07-021-0/+5
* Simplify syntax of modifiers and semantic actions•••Modifiers and semantic actions are represented by directives following the '#' symbol. Ryo Nihei2021-06-301-9/+20
* Add ast actionRyo Nihei2021-06-281-2/+11
* Add syntax of fragmentRyo Nihei2021-06-201-0/+8
* Add syntax of modifiers and actions•••Currently, a mode modifier and push/pop actions are available. The modifier and the actions make sense in only lexical specifications. Ryo Nihei2021-06-201-1/+3
* Add syntax of commentsRyo Nihei2021-06-201-0/+15
* Add production syntaxRyo Nihei2021-06-151-1/+2
* Add spec parser•••Currently, the parser only supports definitions of lexical specification. Ryo Nihei2021-06-151-0/+103