Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2022-11-12 | Set token positions for the EOF symbol | Ryo Nihei | 2 | -3/+3 | |
vartan intentionally had not set positional information for the EOF symbol in a token because the corresponding character does not exist in the source code. However, to be able to include the positional information in a syntax error message when a syntax error occurs due to the detection of the EOF symbol during parsing, this commit sets the position next to the last character in the source code as the position of the EOF symbol. | |||||
2022-11-12 | Fix counting of token positions | Ryo Nihei | 1 | -37/+46 | |
The name `unread` gives the impression of operating just the opposite of `read`. However, this commit renames `unread` function to `revert` because it was a function to revert the state to the last acceptance. | |||||
2022-11-11 | Update CHANGELOG | Ryo Nihei | 1 | -0/+32 | |
2022-11-10 | Import source code of lexer generator | Ryo Nihei | 81 | -1168/+17101 | |
From: https://github.com/nihei9/maleeni | |||||
2022-11-06 | Split SymbolTable's APIs into reader/writer | Ryo Nihei | 6 | -132/+171 | |
2022-11-06 | Move the skip table from lexer-related data to parser-related data | Ryo Nihei | 8 | -81/+69 | |
2022-11-05 | Remove anonymous symbol system | Ryo Nihei | 13 | -277/+233 | |
Remove unimportant features to tidy up the specification. | |||||
2022-11-05 | Remove alias system | Ryo Nihei | 16 | -240/+54 | |
Remove unimportant features to tidy up the specification. | |||||
2022-08-08 | Update README | Ryo Nihei | 1 | -0/+2 | |
2022-08-07 | Upgrade Go compiler to v1.19 | Ryo Nihei | 6 | -32/+34 | |
2022-08-06 | Add tests | Ryo Nihei | 1 | -0/+14 | |
2022-08-06 | Remove underscore syntax matching any symbol | Ryo Nihei | 3 | -59/+8 | |
Underscore syntax: For instance, a tree `(expr (id 'a') (add '+') (_))` matches both source codes `a + b * c` and `a - b / c`. This feature is helpful because it allows you to emphasize the main points of the test by ignoring nodes of no interest. However, we will remove the feature for the time being to reconsider the grammar. | |||||
2022-08-05 | Prohibit error node having children | Ryo Nihei | 2 | -0/+85 | |
2022-06-14 | Fix parse error messages for tree parser | Ryo Nihei | 1 | -36/+54 | |
2022-06-13 | Support testing token's texts in vartan-test command | Ryo Nihei | 10 | -193/+926 | |
2022-06-12 | Prohibit using a pattern in an alternative | Ryo Nihei | 6 | -19/+102 | |
When a syntax error occurs, the parser must provide a user with the names of expected tokens. However, if a pattern appears directly in an alternative, Vartan cannot assign an appropriate name to the pattern. Therefore, this commit prohibits alternatives from containing patterns. | |||||
2022-06-11 | Support the underscore symbol matching any symbols in vartan-test command | Ryo Nihei | 4 | -3/+55 | |
2022-06-11 | Remove the kind field from a node corresponding to an anonymous terminal symbol | Ryo Nihei | 8 | -43/+249 | |
2022-05-29 | Support testable tree output in vartan-parse command | Ryo Nihei | 4 | -7/+66 | |
2022-05-29 | Add vartan-test command | Ryo Nihei | 12 | -1/+2535 | |
2022-05-27 | Rename spec package to spec/grammar package | Ryo Nihei | 29 | -29/+29 | |
2022-05-22 | Allows a directory to be specified as the --output option for the ↵ | Ryo Nihei | 7 | -76/+112 | |
vartan-compile command | |||||
2022-05-22 | Stop supporting SLR(1) and always use LALR(1) | Ryo Nihei | 20 | -1182/+67 | |
2022-05-15 | Prohibit applying #left, #right, #assign, and #prec to an error symbol | Ryo Nihei | 2 | -14/+103 | |
The shift of the error symbol is an operation forced by the driver. Therefore it is impossible to change this behavior by giving precedence to the error symbol. If we desire to change the precedence of a production rule with the error symbol, we can use #prec directive. | |||||
2022-05-15 | Prohibit applying the expansion operator to anything other than identifiers | Ryo Nihei | 3 | -2/+62 | |
2022-05-15 | Prohibit using escape sequences in string literals | Ryo Nihei | 5 | -86/+58 | |
2022-05-15 | Stop handling panic to print a stack trace | Ryo Nihei | 6 | -135/+41 | |
2022-05-10 | Update CHANGELOG | Ryo Nihei | 1 | -0/+15 | |
2022-05-10 | Follow golangci-lint | Ryo Nihei | 1 | -3/+1 | |
2022-05-10 | Add spelling inconsistencies check | Ryo Nihei | 3 | -23/+238 | |
2022-05-10 | Make the identifier format strict | Ryo Nihei | 11 | -88/+152 | |
2022-05-10 | Change the default suffix of a grammar file from .vr to .vartan | Ryo Nihei | 2 | -5/+5 | |
2022-05-10 | Change the suffix of a description file from -description.json to -report.json | Ryo Nihei | 6 | -40/+40 | |
2022-05-10 | Add ordered symbol notation | Ryo Nihei | 12 | -216/+1120 | |
2022-05-10 | Add #assign directive | Ryo Nihei | 5 | -13/+507 | |
An #assign directive changes only precedence. | |||||
2022-05-10 | Change syntax for top-level directives | Ryo Nihei | 22 | -385/+892 | |
%name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d ); | |||||
2022-05-10 | Make #prec directive change only precedence and not associativity | Ryo Nihei | 5 | -30/+275 | |
2022-05-10 | Add --json option to vartan-parse command | Ryo Nihei | 3 | -28/+91 | |
2022-04-22 | Update CHANGELOG | Ryo Nihei | 1 | -0/+12 | |
2022-04-22 | Suppress a report about conflicts resolved explicitly | Ryo Nihei | 5 | -48/+151 | |
2022-04-21 | vartan-show command prints only adopted actions when conflicts occur | Ryo Nihei | 4 | -63/+51 | |
2022-04-20 | Update README | Ryo Nihei | 1 | -75/+21 | |
2022-04-20 | Update dependencies | Ryo Nihei | 2 | -5/+8 | |
2022-04-16 | Prohibit ambiguous symbol in an #ast directive | Ryo Nihei | 3 | -1/+49 | |
2022-04-16 | Add tests for driver | Ryo Nihei | 1 | -3/+155 | |
2022-04-16 | Add tests for compiler | Ryo Nihei | 1 | -0/+224 | |
2022-04-16 | Prohibit using the same element multiple times in the #ast directive | Ryo Nihei | 3 | -4/+45 | |
2022-04-16 | Prohibit specifying associativity and precedence multiple times for a symbol | Ryo Nihei | 3 | -1/+130 | |
2022-04-15 | Add tests for compiler | Ryo Nihei | 6 | -119/+735 | |
2022-04-14 | Move compiler tests from driver package to grammar package | Ryo Nihei | 3 | -553/+658 | |