aboutsummaryrefslogtreecommitdiff
path: root/grammar (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Namespace packages with "urubu/"EuAndreh2024-12-1032-14009/+0
|
* Start building test filesEuAndreh2024-12-1010-18/+18
|
* Build and test existing code as isEuAndreh2024-12-0214-25/+25
|
* Import source code of lexer generatorRyo Nihei2022-11-1032-729/+6652
| | | | From: https://github.com/nihei9/maleeni
* Split SymbolTable's APIs into reader/writerRyo Nihei2022-11-066-132/+171
|
* Move the skip table from lexer-related data to parser-related dataRyo Nihei2022-11-061-24/+22
|
* Remove anonymous symbol systemRyo Nihei2022-11-053-144/+32
| | | | Remove unimportant features to tidy up the specification.
* Remove alias systemRyo Nihei2022-11-053-120/+16
| | | | 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.
* Remove the kind field from a node corresponding to an anonymous terminal symbolRyo Nihei2022-06-111-5/+7
|
* Rename spec package to spec/grammar packageRyo Nihei2022-05-277-7/+7
|
* Allows a directory to be specified as the --output option for the ↵Ryo Nihei2022-05-221-52/+18
| | | | vartan-compile command
* Stop supporting SLR(1) and always use LALR(1)Ryo Nihei2022-05-227-1076/+4
|
* 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.
* Add spelling inconsistencies checkRyo Nihei2022-05-103-23/+238
|
* Make the identifier format strictRyo Nihei2022-05-104-65/+66
|
* Change the suffix of a description file from -description.json to -report.jsonRyo Nihei2022-05-102-12/+12
|
* Add ordered symbol notationRyo Nihei2022-05-103-123/+969
|
* Add #assign directiveRyo Nihei2022-05-102-0/+333
| | | | An #assign directive changes only precedence.
* Change syntax for top-level directivesRyo Nihei2022-05-109-220/+570
| | | | | | | | | | | | | %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-103-26/+224
|
* Suppress a report about conflicts resolved explicitlyRyo Nihei2022-04-222-37/+68
|
* vartan-show command prints only adopted actions when conflicts occurRyo Nihei2022-04-213-58/+51
|
* Prohibit ambiguous symbol in an #ast directiveRyo Nihei2022-04-163-1/+49
|
* 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-153-113/+719
|
* Move compiler tests from driver package to grammar packageRyo Nihei2022-04-142-8/+656
|
* Fix error messagesRyo Nihei2022-03-301-2/+2
|
* Upgrade maleeni to v0.6.0Ryo Nihei2022-03-301-1/+21
|
* Allow an alternative to have multiple directivesRyo Nihei2022-03-302-5/+26
|
* Move directives given to lexical productionsRyo Nihei2022-03-292-30/+38
| | | | | 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.
* Use IDs and labels as parameters of an #ast directive instead of symbol ↵Ryo Nihei2022-03-291-21/+25
| | | | positions
* Add label notationRyo Nihei2022-03-292-0/+25
|
* Simplify the syntax of #ast directiveRyo Nihei2022-03-281-30/+29
| | | | This change allows using the simple syntax of the directive like `#ast $1 $3...` instead of `#ast #(foo $1 $3...)`.
* Follow golangci-lintRyo Nihei2022-03-287-88/+31
|
* Add name directive to specify a grammar nameRyo Nihei2021-10-288-2/+71
|
* Use maleeni v0.5.1Ryo Nihei2021-10-271-1/+4
|
* Use the LALR by default when using grammar.Compile instead of the CLIRyo Nihei2021-09-031-1/+3
|
* Support LAC (lookahead correction)Ryo Nihei2021-09-022-0/+9
|
* Remove the expected terminals field from the parsing tableRyo Nihei2021-08-312-25/+5
| | | | The driver searches the expected terminals corresponding to each state if necessary.
* Add #prec directive to set precedence and associativity of productionsRyo Nihei2021-08-301-10/+48
|
* Add precedences and associativities to the description fileRyo Nihei2021-08-292-3/+42
|
* Add describe command to print a description fileRyo Nihei2021-08-293-171/+213
|
* Use a pattern string defined by a string literal as its aliasRyo Nihei2021-08-281-13/+42
|
* Add an #alias directive to define a user-friendly name of a terminalRyo Nihei2021-08-281-11/+36
|
* Add error symbol and #recover directive to recover from an error stateRyo Nihei2021-08-269-43/+156
|
* Fix panic on no productionsRyo Nihei2021-08-221-0/+3
|
* Add a column number to an error messageRyo Nihei2021-08-221-0/+28
|