projects
/
henge
/
webcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A quad is now a file
[henge/webcc.git]
/
src
/
apc
/
parser.y
diff --git
a/src/apc/parser.y
b/src/apc/parser.y
index
9a15851
..
2b17d83
100644
(file)
--- a/
src/apc/parser.y
+++ b/
src/apc/parser.y
@@
-53,6
+53,7
@@
%token <ref> REF
%token <val> SSD
%token <voidp> FPTR
%token <ref> REF
%token <val> SSD
%token <voidp> FPTR
+%token <voidp> QPTR
// Change width, height, num_ptrs to NUM because
// when scanning, we can't determine which NUM
// is which.
// Change width, height, num_ptrs to NUM because
// when scanning, we can't determine which NUM
// is which.
@@
-96,22
+97,17
@@
root:
RT NUM NUM NUM {insert_root($2, $3, $4);};
;
RT NUM NUM NUM {insert_root($2, $3, $4);};
;
-quad_list:
-quad_list quad
-| quad
-;
-
-quad:
-QOPEN NUM NUM NUM REF QCLOSE {insert_quad($2, $3, $4, $5);};
+quad_file:
+QOPEN QPTR QCLOSE {insert_quad($2);};
hitbox:
HB NUM {insert_hitbox($2);}
;
set_map_data:
hitbox:
HB NUM {insert_hitbox($2);}
;
set_map_data:
-quad_
list
-| quad_
list
hitbox
-| quad_
list
hitbox root
+quad_
file
+| quad_
file
hitbox
+| quad_
file
hitbox root
| hitbox root
| hitbox
| root
| hitbox root
| hitbox
| root