X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fapc%2Fparser.y;h=07bc28be16d47e13050d1dd9d1b030d1a7cad2e9;hp=e4b1bb5453c9dc7914d562a829c2a165d40f26de;hb=f0fe047bf6596784aae8c56310f9dec35a09dbec;hpb=243efa00e6ec5b35d76db02d1c2c9240e76d2637 diff --git a/src/apc/parser.y b/src/apc/parser.y index e4b1bb5..07bc28b 100644 --- a/src/apc/parser.y +++ b/src/apc/parser.y @@ -18,8 +18,16 @@ %} %define parse.error verbose %define lr.type ielr -%define api.value.type union -//operators + +%union { + uint64_t ref; + int NUM; + char *str; + void *voidp; + +} + + //operators %token CLOPEN // / %token CLCLOSE // \ %token SOPEN @@ -38,20 +46,20 @@ %token FS %token ELE //nonterminal types -%type olink -%type ele_svlink -%type set_svlink +%type olink +%type ele_svlink +%type set_svlink //terminals -%token NUM -%token STR -%token SS -%token NAME -%token REF -%token SSD -%token FPTR -%token WIDTH -%token HEIGHT -%token NUM_PTRS +%token NUM +%token STR +%token SS +%token NAME +%token REF +%token SSD +%token FPTR +%token WIDTH +%token HEIGHT +%token NUM_PTRS //precedence %precedence LP %precedence MP