aboutsummaryrefslogtreecommitdiff
path: root/driver/parser.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Import source code of lexer generatorRyo Nihei2022-11-101-412/+0
| | | | From: https://github.com/nihei9/maleeni
* Move the skip table from lexer-related data to parser-related dataRyo Nihei2022-11-061-4/+4
|
* Remove alias systemRyo Nihei2022-11-051-8/+1
| | | | Remove unimportant features to tidy up the specification.
* Stop supporting SLR(1) and always use LALR(1)Ryo Nihei2022-05-221-8/+1
|
* Follow golangci-lintRyo Nihei2022-05-101-3/+1
|
* vartan-show command prints only adopted actions when conflicts occurRyo Nihei2022-04-211-5/+0
|
* Add vartan-go commandRyo Nihei2022-03-271-6/+12
|
* Use a lexer via interfaceRyo Nihei2022-03-271-29/+37
|
* Use grammar via an interfaceRyo Nihei2022-03-231-42/+82
|
* Use maleeni v0.5.1Ryo Nihei2021-10-271-1/+1
|
* Pass a token that caused a syntax error to the semantic action APIsRyo Nihei2021-09-071-3/+3
|
* Call the 'MissError' when input doesn't meet an error productionRyo Nihei2021-09-071-0/+4
|
* Add the semantic action API 'TrapAndShiftError' instead of 'TrapError' and ↵Ryo Nihei2021-09-071-4/+1
| | | | 'ShiftError'
* Change semantic action APIsRyo Nihei2021-09-071-5/+9
| | | | The driver reports whether it recovered from an error to the semantic action APIs via the argument `recovered`.
* Make semantic actions user-configurableRyo Nihei2021-09-031-233/+31
|
* Support LAC (lookahead correction)Ryo Nihei2021-09-021-29/+115
|
* Remove the expected terminals field from the parsing tableRyo Nihei2021-08-311-10/+15
| | | | The driver searches the expected terminals corresponding to each state if necessary.
* RefactorRyo Nihei2021-08-301-166/+216
|
* Add an #alias directive to define a user-friendly name of a terminalRyo Nihei2021-08-281-25/+17
|
* Add error symbol and #recover directive to recover from an error stateRyo Nihei2021-08-261-27/+114
|
* Add a column number to a tokenRyo Nihei2021-08-221-2/+10
|
* Fix indents of a treeRyo Nihei2021-08-191-1/+1
|
* Fix panic on a syntax errorRyo Nihei2021-08-151-3/+5
|
* Add --only-parse option to the parse commandRyo Nihei2021-08-051-6/+11
| | | | When this option is enabled, the parser performs only parse and doesn't semantic actions.
* Avoid the growth of slices when constructing treesRyo Nihei2021-08-051-5/+25
|
* Generate an AST and a CST only when they are necessaryRyo Nihei2021-08-041-59/+99
|
* Print expected terminals on a parse errorRyo Nihei2021-08-021-2/+44
|
* Use maleeni v0.3.0Ryo Nihei2021-08-011-2/+2
|
* Add testing for the driverRyo Nihei2021-07-151-0/+3
| | | | The driver can reduce productions that have the empty alternative and can generate a CST (and AST) node.
* Prettify treesRyo Nihei2021-07-021-8/+29
|
* Add ast actionRyo Nihei2021-06-281-20/+71
|
* Add skip actionRyo Nihei2021-06-201-12/+21
|
* Add driverRyo Nihei2021-06-191-0/+155