aboutsummaryrefslogtreecommitdiff
path: root/spec/parser_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename spec package to spec/grammar packageRyo Nihei2022-05-271-1096/+0
|
* Prohibit applying the expansion operator to anything other than identifiersRyo Nihei2022-05-151-0/+54
|
* Add ordered symbol notationRyo Nihei2022-05-101-5/+36
|
* Add #assign directiveRyo Nihei2022-05-101-0/+20
| | | | An #assign directive changes only precedence.
* Change syntax for top-level directivesRyo Nihei2022-05-101-31/+138
| | | | | | | | | | | | | %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d );
* Add tests for compilerRyo Nihei2022-04-151-0/+5
|
* Allow an alternative to have multiple directivesRyo Nihei2022-03-301-9/+43
|
* Move directives given to lexical productionsRyo Nihei2022-03-291-82/+88
| | | | | 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 directivesRyo Nihei2022-03-291-56/+39
| | | | | | | 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 Nihei2022-03-291-47/+15
| | | | positions
* Add label notationRyo Nihei2022-03-291-0/+104
|
* Simplify the syntax of #ast directiveRyo Nihei2022-03-281-66/+40
| | | | This change allows using the simple syntax of the directive like `#ast $1 $3...` instead of `#ast #(foo $1 $3...)`.
* Add a column number to an error messageRyo Nihei2021-08-221-38/+44
|
* Support %left and %right to specify precedences and associativitiesRyo Nihei2021-08-221-0/+92
|
* Count the number of each line in consecutive linesRyo Nihei2021-07-281-0/+52
|
* Add literal pattern syntax and change tree structure syntaxRyo Nihei2021-07-221-6/+6
| | | | | | - Literal patterns don't interpret the special characters of regular expressions. In other words, 'abc|def' matches only `abc|def`, not `abc` or `def`. - Change tree structure syntax from '(...) to #(...).
* Detect multiple semantic errors in a single parseRyo Nihei2021-07-181-1/+1
|
* Add token positions to an ASTRyo Nihei2021-07-181-18/+199
|
* RefactorRyo Nihei2021-07-181-1/+12
|
* Detect multiple syntax errors in a single parseRyo Nihei2021-07-171-6/+2
|
* Add a line number to error messagesRyo Nihei2021-07-161-1/+7
|
* Allow directives to take multiple parametersRyo Nihei2021-07-021-12/+20
|
* Simplify syntax of modifiers and semantic actionsRyo Nihei2021-06-301-126/+132
| | | | Modifiers and semantic actions are represented by directives following the '#' symbol.
* Add ast actionRyo Nihei2021-06-281-8/+131
|
* Add syntax of fragmentRyo Nihei2021-06-201-0/+29
|
* Add syntax of modifiers and actionsRyo Nihei2021-06-201-0/+111
| | | | | Currently, a mode modifier and push/pop actions are available. The modifier and the actions make sense in only lexical specifications.
* Add production syntaxRyo Nihei2021-06-151-11/+47
|
* Add spec parserRyo Nihei2021-06-151-0/+153
Currently, the parser only supports definitions of lexical specification.