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
|
/*
file: rcsym.txt
Why: raw character symbols vocabulary to parse.
Note: raw-characters is shown for clarity. It is the keyword trigger
that calls this grammar. Parsed is comments onwards.
*/
raw-characters
// comments
(file-name o2_chars,name-space NS_o2_chars) {
// 7 bit char set
"x00" (sym-class raw_nul{
user-declaration
public:
raw_nul(INT Ext_file,size_t Pos);
***
user-implementation
raw_nul::raw_nul(INT Ext_file,size_t Pos){
T_CTOR_RW("x00",T_raw_nul_,false,false,Ext_file,Pos)}
***
}
)
....
"!" (sym-class raw_exclam{
user-declaration
public:
raw_exclam(INT Ext_file,size_t Pos);
***
user-implementation
raw_exclam::raw_exclam(INT Ext_file,size_t Pos){
T_CTOR_RW("!",T_raw_exclam_,false,false,Ext_file,Pos)}
***
}
)
....
// 8 bit char set
"xff" (sym-class raw_xff{
user-declaration
public:
raw_xff(INT Ext_file,size_t Pos);
***
user-implementation
raw_xff::raw_xff(INT Ext_file,size_t Pos){
T_CTOR_RW("xff",T_raw_xff_,false,false,Ext_file,Pos)}
***
}
}
|