Skip to content

Commit ebdadac

Browse files
authored
Merge pull request #487 from ydah/v0.6.11
v0.6.11
2 parents 7ee8adc + 4cd73cf commit ebdadac

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

NEWS.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# NEWS for Lrama
22

3+
## Lrama 0.6.11 (2024-12-23)
4+
5+
### Add support for %type declarations using %nterm in Nonterminal Symbols
6+
7+
Allow to use `%nterm` in Nonterminal Symbols for `%type` declarations.
8+
9+
```yacc
10+
%nterm <type> nonterminal…
11+
```
12+
13+
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:
14+
15+
```yacc
16+
%{
17+
// Prologue
18+
%}
19+
20+
%token EOI 0 "EOI"
21+
%nterm EOI
22+
23+
%%
24+
25+
program: /* empty */
26+
;
27+
```
28+
29+
It show an error message like the following:
30+
31+
```command
32+
❯ exe/lrama nterm.y
33+
nterm.y:6:7: symbol EOI redeclared as a nonterminal
34+
%nterm EOI
35+
^^^
36+
```
37+
338
## Lrama 0.6.10 (2024-09-11)
439

540
### Aliased Named References for actions of RHS in parameterizing rules

lib/lrama/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Lrama
4-
VERSION = "0.6.10".freeze
4+
VERSION = "0.6.11".freeze
55
end

0 commit comments

Comments
 (0)