aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove alias systemRyo Nihei2022-11-0516-240/+54
| | | | Remove unimportant features to tidy up the specification.
* Update READMERyo Nihei2022-08-081-0/+2
|
* Upgrade Go compiler to v1.19Ryo Nihei2022-08-076-32/+34
|
* Add testsRyo Nihei2022-08-061-0/+14
|
* Remove underscore syntax matching any symbolRyo Nihei2022-08-063-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.
* Prohibit error node having childrenRyo Nihei2022-08-052-0/+85
|
* Fix parse error messages for tree parserRyo Nihei2022-06-141-36/+54
|
* Support testing token's texts in vartan-test commandRyo Nihei2022-06-1310-193/+926
|
* Prohibit using a pattern in an alternativeRyo Nihei2022-06-126-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.
* Support the underscore symbol matching any symbols in vartan-test commandRyo Nihei2022-06-114-3/+55
|
* Remove the kind field from a node corresponding to an anonymous terminal symbolRyo Nihei2022-06-118-43/+249
|
* Support testable tree output in vartan-parse commandRyo Nihei2022-05-294-7/+66
|
* Add vartan-test commandRyo Nihei2022-05-2912-1/+2535
|
* Rename spec package to spec/grammar packageRyo Nihei2022-05-2729-29/+29
|
* Allows a directory to be specified as the --output option for the ↵Ryo Nihei2022-05-227-76/+112
| | | | vartan-compile command
* Stop supporting SLR(1) and always use LALR(1)Ryo Nihei2022-05-2220-1175/+60
|
* Prohibit applying #left, #right, #assign, and #prec to an error symbolRyo Nihei2022-05-152-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.
* Prohibit applying the expansion operator to anything other than identifiersRyo Nihei2022-05-153-2/+62
|
* Prohibit using escape sequences in string literalsRyo Nihei2022-05-155-86/+58
|
* Stop handling panic to print a stack traceRyo Nihei2022-05-156-135/+41
|
* Update CHANGELOGRyo Nihei2022-05-101-0/+15
|
* Follow golangci-lintRyo Nihei2022-05-101-3/+1
|
* Add spelling inconsistencies checkRyo Nihei2022-05-103-23/+238
|
* Make the identifier format strictRyo Nihei2022-05-1011-88/+152
|
* Change the default suffix of a grammar file from .vr to .vartanRyo Nihei2022-05-102-5/+5
|
* Change the suffix of a description file from -description.json to -report.jsonRyo Nihei2022-05-106-40/+40
|
* Add ordered symbol notationRyo Nihei2022-05-1012-216/+1120
|
* Add #assign directiveRyo Nihei2022-05-105-13/+507
| | | | An #assign directive changes only precedence.
* Change syntax for top-level directivesRyo Nihei2022-05-1022-385/+892
| | | | | | | | | | | | | %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d );
* Make #prec directive change only precedence and not associativityRyo Nihei2022-05-105-30/+275
|
* Add --json option to vartan-parse commandRyo Nihei2022-05-103-28/+91
|
* Update CHANGELOGRyo Nihei2022-04-221-0/+12
|
* Suppress a report about conflicts resolved explicitlyRyo Nihei2022-04-225-48/+151
|
* vartan-show command prints only adopted actions when conflicts occurRyo Nihei2022-04-214-63/+51
|
* Update READMERyo Nihei2022-04-201-75/+21
|
* Update dependenciesRyo Nihei2022-04-202-5/+8
|
* Prohibit ambiguous symbol in an #ast directiveRyo Nihei2022-04-163-1/+49
|
* Add tests for driverRyo Nihei2022-04-161-3/+155
|
* Add tests for compilerRyo Nihei2022-04-161-0/+224
|
* Prohibit using the same element multiple times in the #ast directiveRyo Nihei2022-04-163-4/+45
|
* Prohibit specifying associativity and precedence multiple times for a symbolRyo Nihei2022-04-163-1/+130
|
* Add tests for compilerRyo Nihei2022-04-156-119/+735
|
* Move compiler tests from driver package to grammar packageRyo Nihei2022-04-143-553/+658
|
* Update CHANGELOGRyo Nihei2022-04-031-0/+24
|
* Allow arbitrary user-defined types for nodes in a syntax treeRyo Nihei2022-04-035-203/+229
|
* Fix help documentsRyo Nihei2022-04-022-5/+4
|
* Remove --grammar option from vartan-compile commandRyo Nihei2022-04-022-8/+10
|
* Update READMERyo Nihei2022-04-021-0/+439
|
* Print a parse tree even if syntax error occurRyo Nihei2022-04-012-4/+18
| | | | | A parser can construct a parse tree even if syntax error occur. When there is a parse tree, print it.
* Fix error messagesRyo Nihei2022-03-301-2/+2
|