summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/TS_lab.lex
blob: c198ab4d7023b54350221867e7d76b73ca1857d7 (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
34
35
36
37
38
39
/*	
$echo FILE:		  TS_lab.lex
$echo Purpose:	  test la expr with missing term: a + b + '-' + '+' - '-' + '-'
$echo Note: dbl quotes for + and - as operands where the 
$echo unquoted + and - are considered operators.
$echo Okay
*/
fsm	
(fsm-id	"TS_lab.lex",fsm-filename	TS_lab,fsm-namespace NS_TS_lab
,fsm-class		CTS_lab
,fsm-version	"1.0"	,fsm-date	"17 Juin 2003",fsm-debug "true"
,fsm-comments	"end-of-line recognizer")
parallel-parser	
(	
  parallel-thread-function
    TH_TS_lab
  ***
  parallel-la-boundary
    a + b + "-" + "+" - "-" + "-"
  ***
)
@"/usr/local/yacco2/compiler/grammars/yacco2_T_includes.T"

/@
@** Rules.\fbreak
@/
rules{
Reol AD AB(){
  -> Rdelimiters 
}


Rdelimiters AD AB()
{
  ->  "x0a" 
  ->  "x0d" |.| 
  ->  "x0d" "x0a" 
}
}// end of rules