summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/TS_path4.lex
blob: 0fe8c94c26a095147943281277706b0ebe4efccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*	
$echo FILE:		  TS_path4.lex
$echo Purpose:	  Pathological test?
$echo Error as Rstart and Ra both shift Ra and conflict s/r: not lr1				
$echo Error shift / reduce error on common eog before pathological check!				
*/
/@
@** |TS_path4| grammar.\fbreak
Pathological test grammar.\fbreak
Rule |RA| does not derive a terminal string.
It indirectly left recurses on self thru RA with a twist of \emptyrule.
@/
fsm	
(fsm-id	"TS_path3.lex",fsm-filename	TS_path4
,fsm-namespace NS_TS_path4
,fsm-class		CTS_path4
,fsm-version	"1.0"	,fsm-date	"17 Juin 2003",fsm-debug	"true"
,fsm-comments	"Okay accepts empty terminal string")
@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T"
rules{
Rstart AD AB(){
  -> RA eog
}


RA AD AB()
{
  ->  RA
  ->  
}
}// end of rules