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
71
72
|
--- assembler.y.orig Sat Oct 26 01:11:50 2002
+++ assembler.y Mon Dec 2 12:00:50 2002
@@ -254,22 +254,22 @@
%token SWFACTION
%token HEXDATA
-%token '(', ')', ',', ':', '"', '.'
+%token '(' ')' ',' ':' '"' '.'
%type <str> funcname_opt
%type <str> mcname_opt
-%type <len> statements, statement, statements_opt
-%type <len> function, function_args
-%type <len> push_list, push_item
+%type <len> statements statement statements_opt
+%type <len> function function_args
+%type <len> push_list push_item
%type <len> with
-%type <len> settarget, settargetexpression, ifframeloaded, ifframeloadedexpression
-%type <len> actionblocks, actionblock, actionblocks_opt
-%type <len> buttoneventblocks, buttoneventblock, buttoneventblocks_opt
-%type <len> mceventblocks, mceventblock, mceventblocks_opt
-%type <len> mcblocks, mcblock, mcblocks_opt
-%type <len> frame, definebutton, definemc, placemc, initmc
-%type <len> buttonevent, buttonevents, mcevent, mcevents, key, property
-%type <len> opcode,hex_list, hexdata_opt
+%type <len> settarget settargetexpression ifframeloaded ifframeloadedexpression
+%type <len> actionblocks actionblock actionblocks_opt
+%type <len> buttoneventblocks buttoneventblock buttoneventblocks_opt
+%type <len> mceventblocks mceventblock mceventblocks_opt
+%type <len> mcblocks mcblock mcblocks_opt
+%type <len> frame definebutton definemc placemc initmc
+%type <len> buttonevent buttonevents mcevent mcevents key property
+%type <len> opcode hex_list hexdata_opt
%type <num> urlmethod
%%
@@ -447,7 +447,7 @@
;
mcevent
- : /* empty */ { yyerror("Missing mc event condition") }
+ : /* empty */ { yyerror("Missing mc event condition"); }
| MCLOAD { $$ = 0x01; }
| MCENTERFRAME { $$ = 0x02; }
| MCUNLOAD { $$ = 0x04; }
@@ -551,16 +551,10 @@
: SETTARGET STRING { $$ = writeByte(SWFACTION_SETTARGET);
$$ += writeShort(strlen($2)+1);
$$ += writeString($2); }
- statements_opt END { $$ = $4 + writeByte(SWFACTION_SETTARGET);
- $$ += $<len>3 + writeShort(1);
- $$ += writeByte(0); }
;
settargetexpression
: SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
- statements_opt END { $$ = $3 + writeByte(SWFACTION_SETTARGET);
- $$ += $<len>2 + writeShort(1);
- $$ += writeByte(0); }
;
ifframeloadedexpression
@@ -849,7 +843,7 @@
| GOTOFRAME INTEGER { $$ = writeByte(SWFACTION_GOTOFRAME);
$$ += writeShort(2);
- $$ += writeShort(atoi($2)) }
+ $$ += writeShort(atoi($2)); }
| GETURL STRING STRING { $$ = writeByte(SWFACTION_GETURL);
$$ += writeShort(strlen($2)+strlen($3)+2);
|