-
Notifications
You must be signed in to change notification settings - Fork 0
/
shilka-6.html
70 lines (59 loc) · 1.8 KB
/
shilka-6.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.66">
<TITLE>SHILKA (keywords description translator): Appendix 1 - Syntax of SHILKA description file (YACC description)</TITLE>
<LINK HREF="shilka-7.html" REL=next>
<LINK HREF="shilka-5.html" REL=previous>
<LINK HREF="shilka.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="shilka-7.html">Next</A>
<A HREF="shilka-5.html">Previous</A>
<A HREF="shilka.html#toc6">Contents</A>
<HR>
<H2><A NAME="s6">6.</A> <A HREF="shilka.html#toc6">Appendix 1 - Syntax of SHILKA description file (YACC description)</A></H2>
<P>
<BLOCKQUOTE><CODE>
<PRE>
%token PERCENTS LOCAL IMPORT EXPORT TYPE EQUAL OTHER
%token IDENTIFIER STRING CODE_INSERTION ADDITIONAL_C_CODE
%token NUMBER
%start description
%%
description : declaration_part PERCENTS
keyword_definition_list ADDITIONAL_C_CODE
;
declaration_part :
| declaration_part declaration
;
declaration : TYPE IDENTIFIER
| LOCAL CODE_INSERTION
| IMPORT CODE_INSERTION
| EXPORT CODE_INSERTION
;
keyword_definition_list :
| keyword_definition_list keyword_definition
;
keyword_definition : IDENTIFIER optional_name frequency optional_action
| STRING EQUAL IDENTIFIER frequency optional_action
| OTHER optional_action
;
optional_name :
| EQUAL IDENTIFIER
;
frequency :
| NUMBER
;
optional_action :
| CODE_INSERTION
;
</PRE>
</CODE></BLOCKQUOTE>
</P>
<HR>
<A HREF="shilka-7.html">Next</A>
<A HREF="shilka-5.html">Previous</A>
<A HREF="shilka.html#toc6">Contents</A>
</BODY>
</HTML>