summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/test_use_cnt.lex
blob: 06eab253d6ddbe7c960daf1e6ef6539f83ecc31a (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:	test_use_cnt.lex
$echo Purpose:	test rules use count as an optimization
$echo Okay
*/
fsm	
(fsm-id	"test_use_cnt.lex",fsm-filename	test_use_cnt,fsm-namespace NS_test_use_cnt
,fsm-class		CTS_la1
,fsm-version	"1.0"	,fsm-date	"17 Juin 2003",fsm-debug	"true"
,fsm-comments	"end-of-line recognizer")
@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T"

/@
@** Rules.\fbreak
@/
rules{
Rtest_use_cnt AD AB(){
  -> Ra Rxx Ra Rxxx eog
}
Rxx AD AB()
{
  -> x Ra x Ra b
}
Rxxx AD AB()
{
  ->  x Ra x Ra x Ra
}
Ra AD AB()
{
  ->  a
  ->  Ra a 
}
}// end of rules