summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/TS_path2.lex
blob: a9a8dd544158a93c0250438e09939897a0762b9b (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
32
33
/*	
$echo FILE:		  TS_path2.lex
$echo Purpose:	  Pathological test
$echo Error --- Indirect lt recursion that does not derive a terminal string				
*/
/@
@** |TS_path2| grammar.\fbreak
Pathological test grammar.\fbreak
Rule |RA| does not derive a terminal string.
It indirectly left recurses on self thru RB.
@/
fsm	
(fsm-id	"TS_path2.lex",fsm-filename	TS_path2
,fsm-namespace NS_TS_path2
,fsm-class		CTS_path2
,fsm-version	"1.0"	,fsm-date	"17 Juin 2003",fsm-debug	"true"
,fsm-comments	"Indirect lt recursion that does not derive a terminal string")
@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T"
rules{
Rstart AD AB(){
  -> RA 
}


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