summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/TS_path3.lex
blob: 1c564fe22645431c8206c04f4d9a3a7019b95897 (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
/*	
$echo FILE:		  TS_path3.lex
$echo Purpose:	  Pathologiacl test
$echo Error --- rt recursion that does not derive a terminal string			
*/
/@
@** |TS_path3| 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_path3.lex",fsm-filename	TS_path3
,fsm-namespace NS_TS_path3
,fsm-class		CTS_path3
,fsm-version	"1.0"	,fsm-date	"17 Juin 2003",fsm-debug	"true"
,fsm-comments	"rt 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()
{
  ->  
}
}// end of rules