aboutsummaryrefslogtreecommitdiff
path: root/grammar/grammar_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Namespace packages with "urubu/"EuAndreh2024-12-101-3381/+0
|
* Start building test filesEuAndreh2024-12-101-2/+2
|
* Import source code of lexer generatorRyo Nihei2022-11-101-228/+228
| | | | From: https://github.com/nihei9/maleeni
* Remove anonymous symbol systemRyo Nihei2022-11-051-34/+12
| | | | Remove unimportant features to tidy up the specification.
* Remove alias systemRyo Nihei2022-11-051-74/+0
| | | | Remove unimportant features to tidy up the specification.
* Prohibit using a pattern in an alternativeRyo Nihei2022-06-121-1/+1
| | | | | | 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.
* Rename spec package to spec/grammar packageRyo Nihei2022-05-271-1/+1
|
* 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