summaryrefslogtreecommitdiff
path: root/web/yacco2/diagrams/Tsym.txt
blob: 23bcb3ba3b449175a326abfaf13aeb4ae003654d (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
/*
file: Tsym.txt
Why:  terminals symbols vocabulary to parse. 
Note: terminals is shown for clarity. It is the keyword trigger 
      that calls this grammar. Parsed is comments onwards.
*/
terminals
// comments
(file-name  o2_terminals,name-space NS_o2_terminals){
/@
Makesure c++ forward references compile.
@/
  terminals-refs
   using namespace std;
   struct T_c_literal;
         ....
   struct refered_T;
  ***
"option-t"    AD 
  /@
   Command line option for \O2 indicating generate T vocabulary code.
   Returned from |yacco2_lcl_option| thread.
  @/
 (sym-class  T_option_t)
         ....
 "lint" (sym-class T_lint)
 terminals-sufx
   static int* NS_o2_terminals::example_(0);
 ***
}