Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename spec package to spec/grammar package | Ryo Nihei | 2022-05-27 | 1 | -567/+0 |
| | |||||
* | Prohibit applying the expansion operator to anything other than identifiers | Ryo Nihei | 2022-05-15 | 1 | -2/+6 |
| | |||||
* | Add ordered symbol notation | Ryo Nihei | 2022-05-10 | 1 | -6/+15 |
| | |||||
* | Change syntax for top-level directives | Ryo Nihei | 2022-05-10 | 1 | -28/+41 |
| | | | | | | | | | | | | | %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d ); | ||||
* | Add tests for compiler | Ryo Nihei | 2022-04-15 | 1 | -6/+10 |
| | |||||
* | Allow an alternative to have multiple directives | Ryo Nihei | 2022-03-30 | 1 | -7/+14 |
| | |||||
* | Move directives given to lexical productions | Ryo Nihei | 2022-03-29 | 1 | -9/+16 |
| | | | | | 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 directives | Ryo Nihei | 2022-03-29 | 1 | -7/+2 |
| | | | | | | | 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 Nihei | 2022-03-29 | 1 | -24/+11 |
| | | | | positions | ||||
* | Add label notation | Ryo Nihei | 2022-03-29 | 1 | -4/+25 |
| | |||||
* | Simplify the syntax of #ast directive | Ryo Nihei | 2022-03-28 | 1 | -43/+13 |
| | | | | This change allows using the simple syntax of the directive like `#ast $1 $3...` instead of `#ast #(foo $1 $3...)`. | ||||
* | Follow golangci-lint | Ryo Nihei | 2022-03-28 | 1 | -6/+0 |
| | |||||
* | Use a pattern string defined by a string literal as its alias | Ryo Nihei | 2021-08-28 | 1 | -5/+7 |
| | |||||
* | Add an #alias directive to define a user-friendly name of a terminal | Ryo Nihei | 2021-08-28 | 1 | -5/+22 |
| | |||||
* | Support %left and %right to specify precedences and associativities | Ryo Nihei | 2021-08-22 | 1 | -0/+57 |
| | |||||
* | Add a token position and detailed info to a lexical error message | Ryo Nihei | 2021-07-28 | 1 | -1/+9 |
| | |||||
* | Detect multiple semantic errors in a single parse | Ryo Nihei | 2021-07-18 | 1 | -15/+15 |
| | |||||
* | Add token positions to an AST | Ryo Nihei | 2021-07-18 | 1 | -3/+31 |
| | |||||
* | Refactor | Ryo Nihei | 2021-07-18 | 1 | -5/+19 |
| | |||||
* | Detect multiple syntax errors in a single parse | Ryo Nihei | 2021-07-17 | 1 | -16/+93 |
| | |||||
* | Add a line number to error messages | Ryo Nihei | 2021-07-16 | 1 | -19/+28 |
| | |||||
* | Allow directives to take multiple parameters | Ryo Nihei | 2021-07-02 | 1 | -9/+21 |
| | |||||
* | Simplify syntax of modifiers and semantic actions | Ryo Nihei | 2021-06-30 | 1 | -36/+46 |
| | | | | Modifiers and semantic actions are represented by directives following the '#' symbol. | ||||
* | Add ast action | Ryo Nihei | 2021-06-28 | 1 | -18/+73 |
| | |||||
* | Add syntax of fragment | Ryo Nihei | 2021-06-20 | 1 | -11/+56 |
| | |||||
* | Add syntax of modifiers and actions | Ryo Nihei | 2021-06-20 | 1 | -4/+60 |
| | | | | | Currently, a mode modifier and push/pop actions are available. The modifier and the actions make sense in only lexical specifications. | ||||
* | Add production syntax | Ryo Nihei | 2021-06-15 | 1 | -10/+28 |
| | |||||
* | Add spec parser | Ryo Nihei | 2021-06-15 | 1 | -0/+148 |
Currently, the parser only supports definitions of lexical specification. |