summaryrefslogtreecommitdiff
path: root/test/btyacc/inherit2.output
diff options
context:
space:
mode:
Diffstat (limited to 'test/btyacc/inherit2.output')
-rw-r--r--test/btyacc/inherit2.output111
1 files changed, 49 insertions, 62 deletions
diff --git a/test/btyacc/inherit2.output b/test/btyacc/inherit2.output
index 70ffb05..b5df000 100644
--- a/test/btyacc/inherit2.output
+++ b/test/btyacc/inherit2.output
@@ -5,23 +5,20 @@
2 $$2 :
3 declaration : class type $$1 $$2 namelist
+ 4 | type locnamelist
- 4 $$3 :
+ 5 class : GLOBAL
+ 6 | LOCAL
- 5 declaration : type $$3 locnamelist
+ 7 type : REAL
+ 8 | INTEGER
- 6 class : GLOBAL
- 7 | LOCAL
+ 9 namelist : namelist NAME
+ 10 | NAME
- 8 type : REAL
- 9 | INTEGER
+ 11 $$3 :
- 10 namelist : namelist NAME
- 11 | NAME
-
- 12 $$4 :
-
- 13 locnamelist : $$4 $$2 namelist
+ 12 locnamelist : $$3 $$2 namelist
state 0
$accept : . declaration $end (0)
@@ -38,27 +35,27 @@ state 0
state 1
- class : GLOBAL . (6)
+ class : GLOBAL . (5)
- . reduce 6
+ . reduce 5
state 2
- class : LOCAL . (7)
+ class : LOCAL . (6)
- . reduce 7
+ . reduce 6
state 3
- type : REAL . (8)
+ type : REAL . (7)
- . reduce 8
+ . reduce 7
state 4
- type : INTEGER . (9)
+ type : INTEGER . (8)
- . reduce 9
+ . reduce 8
state 5
@@ -78,12 +75,13 @@ state 6
state 7
- declaration : type . $$3 locnamelist (5)
- $$3 : . (4)
+ declaration : type . locnamelist (4)
+ $$3 : . (11)
- . reduce 4
+ . reduce 11
- $$3 goto 9
+ locnamelist goto 9
+ $$3 goto 10
state 8
@@ -92,91 +90,81 @@ state 8
. reduce 1
- $$1 goto 10
+ $$1 goto 11
state 9
- declaration : type $$3 . locnamelist (5)
- $$4 : . (12)
-
- . reduce 12
+ declaration : type locnamelist . (4)
- locnamelist goto 11
- $$4 goto 12
+ . reduce 4
state 10
- declaration : class type $$1 . $$2 namelist (3)
+ locnamelist : $$3 . $$2 namelist (12)
$$2 : . (2)
. reduce 2
- $$2 goto 13
+ $$2 goto 12
state 11
- declaration : type $$3 locnamelist . (5)
+ declaration : class type $$1 . $$2 namelist (3)
+ $$2 : . (2)
- . reduce 5
+ . reduce 2
+
+ $$2 goto 13
state 12
- locnamelist : $$4 . $$2 namelist (13)
- $$2 : . (2)
+ locnamelist : $$3 $$2 . namelist (12)
- . reduce 2
+ NAME shift 14
+ . error
- $$2 goto 14
+ namelist goto 15
state 13
declaration : class type $$1 $$2 . namelist (3)
- NAME shift 15
+ NAME shift 14
. error
namelist goto 16
state 14
- locnamelist : $$4 $$2 . namelist (13)
+ namelist : NAME . (10)
- NAME shift 15
- . error
-
- namelist goto 17
+ . reduce 10
state 15
- namelist : NAME . (11)
+ namelist : namelist . NAME (9)
+ locnamelist : $$3 $$2 namelist . (12)
- . reduce 11
+ NAME shift 17
+ $end reduce 12
state 16
declaration : class type $$1 $$2 namelist . (3)
- namelist : namelist . NAME (10)
+ namelist : namelist . NAME (9)
- NAME shift 18
+ NAME shift 17
$end reduce 3
state 17
- namelist : namelist . NAME (10)
- locnamelist : $$4 $$2 namelist . (13)
-
- NAME shift 18
- $end reduce 13
+ namelist : namelist NAME . (9)
-
-state 18
- namelist : namelist NAME . (10)
-
- . reduce 10
+ . reduce 9
-7 terminals, 10 nonterminals
-14 grammar rules, 19 states
+7 terminals, 9 nonterminals
+13 grammar rules, 18 states
grammar parser grammar
symbol# value# symbol
@@ -196,4 +184,3 @@ symbol# value# symbol
13 268 $$1
14 269 $$2
15 270 $$3
- 16 271 $$4