summaryrefslogtreecommitdiff
path: root/web/yacco2/qa/eol.dat
blob: fa00254130e5f887d1913483bf059fa771cd2850 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*	
FILE:		    eol.lex
Dates:		  4 May 2000
Test file:  eol.dat
Purpose:	  end-of-line and line splice recognizer
	tokens:		T_splice_eol, T_eol
*/
fsm	
(fsm-id	"eol.lex",fsm-filename	eol,fsm-namespace NS_eol
,fsm-class		Ceol{
  user-declaration
    public:
    static UINT line_cnt_; 
  ***
  user-implementation
    UINT Ceol::line_cnt_ = 0; 
  ***
}
,fsm-version	"1.0"	,fsm-date	"4 May 2000",fsm-debug	"false"
,fsm-comments	"end-of-line/line splice recognizer")
parallel-parser	
(	
  parallel-thread-function
    TH_eol
  ***
  parallel-la-boundary
    eolr
  ***
  code
#include "yacco2:parallel_function_include_code.h"
  ***
)

//@"yacco2_include_files.lex"
//
rules{
Reol AD AB(
lhs{
  user-declaration
  public:
static CAbs_lr1_sym* sym_;
  ***
  user-implementation
    CAbs_lr1_sym* Reol::sym_(0);
  ***
  }
){
  -> Reol_chrs {
    rhs-op
      CAbs_lr1_sym* sym = new T_eol();
      sym->rc(Reol::sym_);     
      RSVP(sym)
      Reol::sym_ = 0;
}

}// end of rules