aboutsummaryrefslogtreecommitdiff
path: root/grammar/grammar_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prohibit applying #left, #right, #assign, and #prec to an error symbolRyo Nihei2022-05-151-0/+71
| | | | | | | 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.
* Add spelling inconsistencies checkRyo Nihei2022-05-101-0/+144
|
* Make the identifier format strictRyo Nihei2022-05-101-1/+1
|
* Add ordered symbol notationRyo Nihei2022-05-101-12/+813
|
* Add #assign directiveRyo Nihei2022-05-101-0/+331
| | | | An #assign directive changes only precedence.
* Change syntax for top-level directivesRyo Nihei2022-05-101-177/+506
| | | | | | | | | | | | | %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-101-0/+188
|
* Prohibit ambiguous symbol in an #ast directiveRyo Nihei2022-04-161-0/+28
|
* Add tests for compilerRyo Nihei2022-04-161-0/+224
|
* Prohibit using the same element multiple times in the #ast directiveRyo Nihei2022-04-161-0/+28
|
* Prohibit specifying associativity and precedence multiple times for a symbolRyo Nihei2022-04-161-0/+100
|
* Add tests for compilerRyo Nihei2022-04-151-106/+698
|
* Move compiler tests from driver package to grammar packageRyo Nihei2022-04-141-0/+641