aboutsummaryrefslogtreecommitdiff
path: root/spec (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prohibit applying the expansion operator to anything other than identifiersRyo Nihei2022-05-153-2/+62
|
* Prohibit using escape sequences in string literalsRyo Nihei2022-05-154-86/+34
|
* Make the identifier format strictRyo Nihei2022-05-105-13/+76
|
* Change the suffix of a description file from -description.json to -report.jsonRyo Nihei2022-05-101-1/+1
|
* Add ordered symbol notationRyo Nihei2022-05-107-79/+134
|
* Add #assign directiveRyo Nihei2022-05-101-0/+20
| | | | An #assign directive changes only precedence.
* Change syntax for top-level directivesRyo Nihei2022-05-107-95/+230
| | | | | | | | | | | | | %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d );
* Suppress a report about conflicts resolved explicitlyRyo Nihei2022-04-221-0/+2
|
* Add tests for compilerRyo Nihei2022-04-153-6/+16
|
* Upgrade maleeni to v0.6.0Ryo Nihei2022-03-301-1/+1
|
* Allow an alternative to have multiple directivesRyo Nihei2022-03-302-16/+57
|
* Move directives given to lexical productionsRyo Nihei2022-03-292-91/+104
| | | | | Move all directives given to lexical productions from alternative directives to production directives. This change aims to ensure consistency with respect to the syntax of definitions of terminal symbols and non-terminal symbols.
* Change syntax of production directivesRyo Nihei2022-03-293-64/+41
| | | | | | | The position of directives given to productions has moved from before a left-hand side value to after a left-hand side value. This change aims to simplify the syntax. However, there is no change in positions of directives given to alternatives.
* Use IDs and labels as parameters of an #ast directive instead of symbol ↵Ryo Nihei2022-03-297-149/+56
| | | | positions
* Add label notationRyo Nihei2022-03-297-26/+167
|
* Simplify the syntax of #ast directiveRyo Nihei2022-03-287-179/+93
| | | | This change allows using the simple syntax of the directive like `#ast $1 $3...` instead of `#ast #(foo $1 $3...)`.
* Follow golangci-lintRyo Nihei2022-03-283-11/+4
|
* Add name directive to specify a grammar nameRyo Nihei2021-10-281-0/+1
|
* Generate the lexer source codeRyo Nihei2021-10-274-53/+1407
|
* Support LAC (lookahead correction)Ryo Nihei2021-09-022-0/+2
|
* Remove the expected terminals field from the parsing tableRyo Nihei2021-08-311-1/+0
| | | | The driver searches the expected terminals corresponding to each state if necessary.
* Add precedences and associativities to the description fileRyo Nihei2021-08-291-8/+12
|
* Add describe command to print a description fileRyo Nihei2021-08-291-0/+67
|
* Use a pattern string defined by a string literal as its aliasRyo Nihei2021-08-281-5/+7
|
* Support the escape sequecens \' and \\ in a string literalRyo Nihei2021-08-285-23/+98
|
* Add an #alias directive to define a user-friendly name of a terminalRyo Nihei2021-08-284-8/+39
|
* Add error symbol and #recover directive to recover from an error stateRyo Nihei2021-08-261-0/+3
|
* Add a column number to an error messageRyo Nihei2021-08-223-72/+82
|
* Support %left and %right to specify precedences and associativitiesRyo Nihei2021-08-226-2/+159
|
* Print expected terminals on a parse errorRyo Nihei2021-08-021-0/+2
|
* Use maleeni v0.3.0Ryo Nihei2021-08-012-3/+3
|
* Add a token position and detailed info to a lexical error messageRyo Nihei2021-07-283-7/+21
|
* Count the number of each line in consecutive linesRyo Nihei2021-07-283-2/+54
|
* Add literal pattern syntax and change tree structure syntaxRyo Nihei2021-07-226-15/+47
| | | | | | - 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 #(...).
* Detect multiple semantic errors in a single parseRyo Nihei2021-07-183-18/+18
|
* Add token positions to an ASTRyo Nihei2021-07-183-29/+238
|
* RefactorRyo Nihei2021-07-182-6/+31
|
* Detect multiple syntax errors in a single parseRyo Nihei2021-07-173-23/+95
|
* Add a line number to token error messagesRyo Nihei2021-07-172-6/+31
|
* Add a line number to error messagesRyo Nihei2021-07-165-74/+122
|
* Allow directives to take multiple parametersRyo Nihei2021-07-022-21/+41
|
* Prohibit defining identifiers beginning with an underscoreRyo Nihei2021-07-023-1/+10
| | | | Identifiers beginning with an underscore are used as auto-generated identifiers.
* Simplify syntax of modifiers and semantic actionsRyo Nihei2021-06-307-236/+291
| | | | Modifiers and semantic actions are represented by directives following the '#' symbol.
* Add ast actionRyo Nihei2021-06-288-37/+277
|
* Add syntax of fragmentRyo Nihei2021-06-207-19/+109
|
* Add skip actionRyo Nihei2021-06-201-0/+1
|
* Add syntax of modifiers and actionsRyo Nihei2021-06-207-6/+191
| | | | | Currently, a mode modifier and push/pop actions are available. The modifier and the actions make sense in only lexical specifications.
* Add syntax of commentsRyo Nihei2021-06-204-1/+22
|
* Add driverRyo Nihei2021-06-191-0/+33
|
* Add production syntaxRyo Nihei2021-06-157-24/+85
|