Skip to content

Commit

Permalink
Merge pull request #487 from ydah/v0.6.11
Browse files Browse the repository at this point in the history
v0.6.11
  • Loading branch information
yui-knk authored Dec 23, 2024
2 parents 7ee8adc + 4cd73cf commit ebdadac
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# NEWS for Lrama

## Lrama 0.6.11 (2024-12-23)

### Add support for %type declarations using %nterm in Nonterminal Symbols

Allow to use `%nterm` in Nonterminal Symbols for `%type` declarations.

```yacc
%nterm <type> nonterminal…
```

This directive is also supported for compatibility with Bison, and only non-terminal symbols are allowed. In other words, definitions like the following will result in an error:

```yacc
%{
// Prologue
%}
%token EOI 0 "EOI"
%nterm EOI
%%
program: /* empty */
;
```

It show an error message like the following:

```command
❯ exe/lrama nterm.y
nterm.y:6:7: symbol EOI redeclared as a nonterminal
%nterm EOI
^^^
```

## Lrama 0.6.10 (2024-09-11)

### Aliased Named References for actions of RHS in parameterizing rules
Expand Down
2 changes: 1 addition & 1 deletion lib/lrama/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Lrama
VERSION = "0.6.10".freeze
VERSION = "0.6.11".freeze
end

0 comments on commit ebdadac

Please sign in to comment.