X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fapc%2Fparser.y;h=2b17d833e593c4c2a9ab5e5efdb0e451b8f94802;hp=9a158517c3d83bf5903287393b6d97787a6e5ce6;hb=706bd2e34ac15ffbc22579fde6289280347d5224;hpb=37f4eaa177b0c48838c1da6726adc94134e96b0d diff --git a/src/apc/parser.y b/src/apc/parser.y index 9a15851..2b17d83 100644 --- a/src/apc/parser.y +++ b/src/apc/parser.y @@ -53,6 +53,7 @@ %token REF %token SSD %token FPTR +%token QPTR // 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);}; ; -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: -quad_list -| quad_list hitbox -| quad_list hitbox root +quad_file +| quad_file hitbox +| quad_file hitbox root | hitbox root | hitbox | root