54ed64e
diff -up netcdf-4.1.1/libncdap3/oc/daplex.c.dap netcdf-4.1.1/libncdap3/oc/daplex.c
54ed64e
--- netcdf-4.1.1/libncdap3/oc/daplex.c.dap	2013-03-22 11:43:28.933640833 -0600
54ed64e
+++ netcdf-4.1.1/libncdap3/oc/daplex.c	2013-03-22 11:43:38.946596288 -0600
54ed64e
@@ -2,6 +2,7 @@
54ed64e
    See the COPYRIGHT file for more information. */
54ed64e
 
54ed64e
 #include "dapparselex.h"
54ed64e
+#include "daptab.h"
54ed64e
 
54ed64e
 #define URLCVT
54ed64e
 
54ed64e
diff -up netcdf-4.1.1/libncdap3/oc/dapparse.c.dap netcdf-4.1.1/libncdap3/oc/dapparse.c
54ed64e
--- netcdf-4.1.1/libncdap3/oc/dapparse.c.dap	2010-04-01 17:33:24.000000000 -0600
54ed64e
+++ netcdf-4.1.1/libncdap3/oc/dapparse.c	2013-03-22 11:43:14.710704133 -0600
54ed64e
@@ -2,6 +2,7 @@
54ed64e
    See the COPYRIGHT file for more information. */
54ed64e
 
54ed64e
 #include "dapparselex.h"
54ed64e
+#include "daptab.h"
54ed64e
 
54ed64e
 extern int dapparse(DAPparsestate*);
54ed64e
 
54ed64e
@@ -19,7 +20,7 @@ static int check_int32(char* val, long*
54ed64e
 
54ed64e
 
54ed64e
 Object
54ed64e
-datasetbody(DAPparsestate* state, Object name, Object decls)
54ed64e
+dap_datasetbody(DAPparsestate* state, Object name, Object decls)
54ed64e
 {
54ed64e
     OCnode* node = newocnode((char*)name,OC_Dataset,state);
54ed64e
     node->subnodes = (OClist*)decls;
54ed64e
@@ -32,7 +33,7 @@ datasetbody(DAPparsestate* state, Object
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-attributebody(DAPparsestate* state, Object attrlist)
54ed64e
+dap_attributebody(DAPparsestate* state, Object attrlist)
54ed64e
 {
54ed64e
     OCnode* node = newocnode(NULL,OC_Attributeset,state);
54ed64e
     OCASSERT((state->root == NULL));
54ed64e
@@ -45,7 +46,7 @@ attributebody(DAPparsestate* state, Obje
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-errorbody(DAPparsestate* state, Object code, Object msg)
54ed64e
+dap_errorbody(DAPparsestate* state, Object code, Object msg)
54ed64e
 {
54ed64e
     state->svcerror = 1;
54ed64e
     state->code = strdup((char*)code);
54ed64e
@@ -54,13 +55,13 @@ errorbody(DAPparsestate* state, Object c
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-unrecognizedresponse(DAPparsestate* state)
54ed64e
+dap_unrecognizedresponse(DAPparsestate* state)
54ed64e
 {
54ed64e
-    return errorbody(state,"0",state->lexstate->input);
54ed64e
+    return dap_errorbody(state,"0",state->lexstate->input);
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-declarations(DAPparsestate* state, Object decls, Object decl)
54ed64e
+dap_declarations(DAPparsestate* state, Object decls, Object decl)
54ed64e
 {
54ed64e
     OClist* alist = (OClist*)decls;
54ed64e
     if(alist == NULL)
54ed64e
@@ -71,7 +72,7 @@ declarations(DAPparsestate* state, Objec
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-arraydecls(DAPparsestate* state, Object arraydecls, Object arraydecl)
54ed64e
+dap_arraydecls(DAPparsestate* state, Object arraydecls, Object arraydecl)
54ed64e
 {
54ed64e
     OClist* alist = (OClist*)arraydecls;
54ed64e
     if(alist == NULL)
54ed64e
@@ -82,7 +83,7 @@ arraydecls(DAPparsestate* state, Object
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-arraydecl(DAPparsestate* state, Object name, Object size)
54ed64e
+dap_arraydecl(DAPparsestate* state, Object name, Object size)
54ed64e
 {
54ed64e
     long value;
54ed64e
     OCnode* dim;
54ed64e
@@ -97,7 +98,7 @@ arraydecl(DAPparsestate* state, Object n
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-attrlist(DAPparsestate* state, Object attrlist, Object attrtuple)
54ed64e
+dap_attrlist(DAPparsestate* state, Object attrlist, Object attrtuple)
54ed64e
 {
54ed64e
     OClist* alist = (OClist*)attrlist;
54ed64e
     if(alist == NULL)
54ed64e
@@ -117,7 +118,7 @@ attrlist(DAPparsestate* state, Object at
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-attrvalue(DAPparsestate* state, Object valuelist, Object value, Object etype)
54ed64e
+dap_attrvalue(DAPparsestate* state, Object valuelist, Object value, Object etype)
54ed64e
 {
54ed64e
     OClist* alist = (OClist*)valuelist;
54ed64e
     if(alist == NULL) alist = oclistnew();
54ed64e
@@ -128,7 +129,7 @@ attrvalue(DAPparsestate* state, Object v
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-attribute(DAPparsestate* state, Object name, Object values, Object etype)
54ed64e
+dap_attribute(DAPparsestate* state, Object name, Object values, Object etype)
54ed64e
 {
54ed64e
     OCnode* att;
54ed64e
     att = newocnode((char*)name,OC_Attribute,state);
54ed64e
@@ -138,7 +139,7 @@ attribute(DAPparsestate* state, Object n
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-attrset(DAPparsestate* state, Object name, Object attributes)
54ed64e
+dap_attrset(DAPparsestate* state, Object name, Object attributes)
54ed64e
 {
54ed64e
     OCnode* attset;
54ed64e
     attset = newocnode((char*)name,OC_Attributeset,state);
54ed64e
@@ -199,7 +200,7 @@ dimnameanon(char* basename, unsigned int
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-makebase(DAPparsestate* state, Object name, Object etype, Object dimensions)
54ed64e
+dap_makebase(DAPparsestate* state, Object name, Object etype, Object dimensions)
54ed64e
 {
54ed64e
     OCnode* node;
54ed64e
     node = newocnode((char*)name,OC_Primitive,state);
54ed64e
@@ -209,7 +210,7 @@ makebase(DAPparsestate* state, Object na
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-makestructure(DAPparsestate* state, Object name, Object dimensions, Object fields)
54ed64e
+dap_makestructure(DAPparsestate* state, Object name, Object dimensions, Object fields)
54ed64e
 {
54ed64e
     OCnode* node;
54ed64e
     char* dupname;    
54ed64e
@@ -225,7 +226,7 @@ makestructure(DAPparsestate* state, Obje
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-makesequence(DAPparsestate* state, Object name, Object members)
54ed64e
+dap_makesequence(DAPparsestate* state, Object name, Object members)
54ed64e
 {
54ed64e
     OCnode* node;
54ed64e
     char* dupname;    
54ed64e
@@ -240,7 +241,7 @@ makesequence(DAPparsestate* state, Objec
54ed64e
 }
54ed64e
 
54ed64e
 Object
54ed64e
-makegrid(DAPparsestate* state, Object name, Object arraydecl, Object mapdecls)
54ed64e
+dap_makegrid(DAPparsestate* state, Object name, Object arraydecl, Object mapdecls)
54ed64e
 {
54ed64e
     OCnode* node;
54ed64e
     /* Check for duplicate map names */
54ed64e
diff -up netcdf-4.1.1/libncdap3/oc/dapparselex.h.dap netcdf-4.1.1/libncdap3/oc/dapparselex.h
54ed64e
--- netcdf-4.1.1/libncdap3/oc/dapparselex.h.dap	2010-04-01 17:33:24.000000000 -0600
54ed64e
+++ netcdf-4.1.1/libncdap3/oc/dapparselex.h	2013-03-22 11:40:43.271384078 -0600
54ed64e
@@ -6,12 +6,6 @@
54ed64e
 
54ed64e
 #include "ocinternal.h"
54ed64e
 #include "ocdebug.h"
54ed64e
-#ifdef USE_DAP
54ed64e
-/* To avoid "make distclean" wiping out dap.tab.h */
54ed64e
-#include "daptab.h"
54ed64e
-#else
54ed64e
-#include "dap.tab.h"
54ed64e
-#endif
54ed64e
 
54ed64e
 #ifdef WIN32
54ed64e
 #define strcasecmp stricmp
54ed64e
@@ -73,26 +67,32 @@ typedef struct DAPparsestate {
54ed64e
 extern int yylex (YYSTYPE*, DAPparsestate*);
54ed64e
 extern int yyerror(DAPparsestate*,char*);
54ed64e
 
54ed64e
+extern void dassetup(DAPparsestate* state);
54ed64e
 extern void dap_parse_error(DAPparsestate*,const char *fmt, ...);
54ed64e
-
54ed64e
-extern Object datasetbody(DAPparsestate*,Object decls, Object name);
54ed64e
-extern Object declarations(DAPparsestate*,Object decls, Object decl);
54ed64e
-extern Object arraydecls(DAPparsestate*,Object arraydecls, Object arraydecl);
54ed64e
-extern Object arraydecl(DAPparsestate*,Object name, Object size);
54ed64e
-
54ed64e
-extern void attributesetup(DAPparsestate*);
54ed64e
-extern Object attributebody(DAPparsestate*,Object attrlist);
54ed64e
-extern Object attrlist(DAPparsestate*,Object attrlist, Object attrtuple);
54ed64e
-extern Object attribute(DAPparsestate*,Object name, Object value, Object etype);
54ed64e
-extern Object attrset(DAPparsestate*,Object name, Object attributes);
54ed64e
-extern Object attrvalue(DAPparsestate*,Object valuelist, Object value, Object etype);
54ed64e
-
54ed64e
-extern Object makebase(DAPparsestate*,Object name, Object etype, Object dimensions);
54ed64e
-extern Object makestructure(DAPparsestate*,Object name, Object dimensions, Object fields);
54ed64e
-extern Object makesequence(DAPparsestate*,Object name, Object members);
54ed64e
-extern Object makegrid(DAPparsestate*,Object name, Object arraydecl, Object mapdecls);
54ed64e
-
54ed64e
-extern Object errorbody(DAPparsestate*, Object code, Object msg);
54ed64e
-extern Object unrecognizedresponse(DAPparsestate*);
54ed64e
+extern Object dap_datasetbody(DAPparsestate*,Object decls, Object name);
54ed64e
+extern Object dap_declarations(DAPparsestate*,Object decls, Object decl);
54ed64e
+extern Object dap_arraydecls(DAPparsestate*,Object arraydecls, Object arraydecl);
54ed64e
+extern Object dap_arraydecl(DAPparsestate*,Object name, Object size);
54ed64e
+
54ed64e
+extern void dap_attributesetup(DAPparsestate*);
54ed64e
+extern Object dap_attributebody(DAPparsestate*,Object attrlist);
54ed64e
+extern Object dap_attrlist(DAPparsestate*,Object attrlist, Object attrtuple);
54ed64e
+extern Object dap_attribute(DAPparsestate*,Object name, Object value, Object etype);
54ed64e
+extern Object dap_attrset(DAPparsestate*,Object name, Object attributes);
54ed64e
+extern Object dap_attrvalue(DAPparsestate*,Object valuelist, Object value, Object etype);
54ed64e
+
54ed64e
+extern Object dap_makebase(DAPparsestate*,Object name, Object etype, Object dimensions);
54ed64e
+extern Object dap_makestructure(DAPparsestate*,Object name, Object dimensions, Object fields);
54ed64e
+extern Object dap_makesequence(DAPparsestate*,Object name, Object members);
54ed64e
+extern Object dap_makegrid(DAPparsestate*,Object name, Object arraydecl, Object mapdecls);
54ed64e
+
54ed64e
+extern Object dap_errorbody(DAPparsestate*, Object code, Object msg);
54ed64e
+extern Object dap_unrecognizedresponse(DAPparsestate*);
54ed64e
+
54ed64e
+/* Lexer entry points */
54ed64e
+extern int daplex(YYSTYPE*, DAPparsestate*);
54ed64e
+extern void daplexinit(char* input, Lexstate** lexstatep);
54ed64e
+extern void daplexcleanup(Lexstate** lexstatep);
54ed64e
+extern void dapsetwordchars(Lexstate* lexstate, int kind);
54ed64e
 
54ed64e
 #endif /*DAPPARSELEX_H*/
54ed64e
diff -up netcdf-4.1.1/libncdap3/oc/dap.y.dap netcdf-4.1.1/libncdap3/oc/dap.y
54ed64e
--- netcdf-4.1.1/libncdap3/oc/dap.y.dap	2010-04-01 17:33:23.000000000 -0600
54ed64e
+++ netcdf-4.1.1/libncdap3/oc/dap.y	2013-03-22 11:34:25.689059778 -0600
54ed64e
@@ -1,12 +1,10 @@
54ed64e
 /* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
54ed64e
    See the COPYRIGHT file for more information. */
54ed64e
 
54ed64e
-%{
54ed64e
-#include "dapparselex.h"
54ed64e
-%}
54ed64e
 %pure-parser
54ed64e
 %lex-param {DAPparsestate* parsestate}
54ed64e
 %parse-param {DAPparsestate* parsestate}
54ed64e
+%{#include "dapparselex.h"%}
54ed64e
 
54ed64e
 %token SCAN_ALIAS 
54ed64e
 %token SCAN_ARRAY
54ed64e
@@ -51,30 +49,30 @@ start:
54ed64e
 	| SCAN_ATTR dassetup attributebody
54ed64e
 	| SCAN_ERROR errorbody
54ed64e
         | error
54ed64e
-            {$$=unrecognizedresponse(parsestate);}
54ed64e
+            {$$=dap_unrecognizedresponse(parsestate);}
54ed64e
 	;
54ed64e
 
54ed64e
 datasetbody:
54ed64e
 	  '{' declarations '}' datasetname ';'
54ed64e
-		{$$=datasetbody(parsestate,$4,$2);}
54ed64e
+		{$$=dap_datasetbody(parsestate,$4,$2);}
54ed64e
 	;
54ed64e
 
54ed64e
 declarations:
54ed64e
-	  /* empty */ {$$=declarations(parsestate,null,null);}
54ed64e
-        | declarations declaration {$$=declarations(parsestate,$1,$2);}
54ed64e
+	  /* empty */ {$$=dap_declarations(parsestate,null,null);}
54ed64e
+        | declarations declaration {$$=dap_declarations(parsestate,$1,$2);}
54ed64e
 	;
54ed64e
 
54ed64e
 /* 01/21/08: James says: no dimensions for grids or sequences */
54ed64e
 /* 05/08/09: James says: no duplicate map names */
54ed64e
 declaration:
54ed64e
 	  base_type var_name array_decls ';'
54ed64e
-		{$$=makebase(parsestate,$2,$1,$3);}
54ed64e
+		{$$=dap_makebase(parsestate,$2,$1,$3);}
54ed64e
 	| SCAN_STRUCTURE '{' declarations '}' var_name array_decls ';'
54ed64e
-	    {if(($$ = makestructure(parsestate,$5,$6,$3))==null) {YYABORT;}}
54ed64e
+	    {if(($$ = dap_makestructure(parsestate,$5,$6,$3))==null) {YYABORT;}}
54ed64e
 	| SCAN_SEQUENCE '{' declarations '}' var_name ';'
54ed64e
-	    {if(($$ = makesequence(parsestate,$5,$3))==null) {YYABORT;}}
54ed64e
+	    {if(($$ = dap_makesequence(parsestate,$5,$3))==null) {YYABORT;}}
54ed64e
 	| SCAN_GRID '{' SCAN_ARRAY ':' declaration SCAN_MAPS ':' declarations '}' var_name ';'
54ed64e
-	    {if(($$ = makegrid(parsestate,$10,$5,$8))==null) {YYABORT;}}
54ed64e
+	    {if(($$ = dap_makegrid(parsestate,$10,$5,$8))==null) {YYABORT;}}
54ed64e
         | error 
54ed64e
             {yyerror(parsestate,"Unrecognized type"); YYABORT;}
54ed64e
 	;
54ed64e
@@ -93,13 +91,13 @@ base_type:
54ed64e
 	;
54ed64e
 
54ed64e
 array_decls:
54ed64e
-	  /* empty */ {$$=arraydecls(parsestate,null,null);}
54ed64e
-	| array_decls array_decl {$$=arraydecls(parsestate,$1,$2);}
54ed64e
+	  /* empty */ {$$=dap_arraydecls(parsestate,null,null);}
54ed64e
+	| array_decls array_decl {$$=dap_arraydecls(parsestate,$1,$2);}
54ed64e
 	;
54ed64e
 
54ed64e
 array_decl:
54ed64e
-	   '[' SCAN_WORD ']' {$$=arraydecl(parsestate,null,$2);}
54ed64e
-	 | '[' name '=' SCAN_WORD ']' {$$=arraydecl(parsestate,$2,$4);}
54ed64e
+	   '[' SCAN_WORD ']' {$$=dap_arraydecl(parsestate,null,$2);}
54ed64e
+	 | '[' name '=' SCAN_WORD ']' {$$=dap_arraydecl(parsestate,$2,$4);}
54ed64e
 	 | error
54ed64e
 	    {yyerror(parsestate,"Illegal dimension declaration"); YYABORT;}
54ed64e
 	;
54ed64e
@@ -115,81 +113,81 @@ var_name: name {$$=$1;};
54ed64e
 dassetup: {dassetup(parsestate);}
54ed64e
 
54ed64e
 attributebody:
54ed64e
-	  '{' attr_list '}' {$$=attributebody(parsestate,$2);}
54ed64e
+	  '{' attr_list '}' {$$=dap_attributebody(parsestate,$2);}
54ed64e
 	| error
54ed64e
             {yyerror(parsestate,"Illegal DAS body"); YYABORT;}
54ed64e
 	;
54ed64e
 
54ed64e
 attr_list:
54ed64e
-	  /* empty */ {$$=attrlist(parsestate,null,null);}
54ed64e
-	| attr_list attribute {$$=attrlist(parsestate,$1,$2);}
54ed64e
+	  /* empty */ {$$=dap_attrlist(parsestate,null,null);}
54ed64e
+	| attr_list attribute {$$=dap_attrlist(parsestate,$1,$2);}
54ed64e
 	;
54ed64e
 
54ed64e
 attribute:
54ed64e
 	  alias ';' {$$=null;} /* ignored */ 
54ed64e
         | SCAN_BYTE name bytes ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_BYTE);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_BYTE);}
54ed64e
 	| SCAN_INT16 name int16 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_INT16);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_INT16);}
54ed64e
 	| SCAN_UINT16 name uint16 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_UINT16);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_UINT16);}
54ed64e
 	| SCAN_INT32 name int32 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_INT32);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_INT32);}
54ed64e
 	| SCAN_UINT32 name uint32 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_UINT32);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_UINT32);}
54ed64e
 	| SCAN_FLOAT32 name float32 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_FLOAT32);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_FLOAT32);}
54ed64e
 	| SCAN_FLOAT64 name float64 ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_FLOAT64);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_FLOAT64);}
54ed64e
 	| SCAN_STRING name strs ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_STRING);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_STRING);}
54ed64e
 	| SCAN_URL name urls ';'
54ed64e
-	    {$$=attribute(parsestate,$2,$3,(Object)SCAN_URL);}
54ed64e
-	| name '{' attr_list '}' {$$=attrset(parsestate,$1,$3);}
54ed64e
+	    {$$=dap_attribute(parsestate,$2,$3,(Object)SCAN_URL);}
54ed64e
+	| name '{' attr_list '}' {$$=dap_attrset(parsestate,$1,$3);}
54ed64e
 	| error 
54ed64e
             {yyerror(parsestate,"Illegal attribute"); YYABORT;}
54ed64e
 	;
54ed64e
 
54ed64e
 bytes:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_BYTE);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_BYTE);}
54ed64e
 	| bytes ',' SCAN_WORD
54ed64e
-		{$$=attrvalue(parsestate,$1,$3,(Object)SCAN_BYTE);}
54ed64e
+		{$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_BYTE);}
54ed64e
 	;
54ed64e
 int16:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_INT16);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_INT16);}
54ed64e
 	| int16 ',' SCAN_WORD
54ed64e
-		{$$=attrvalue(parsestate,$1,$3,(Object)SCAN_INT16);}
54ed64e
+		{$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_INT16);}
54ed64e
 	;
54ed64e
 uint16:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_UINT16);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_UINT16);}
54ed64e
 	| uint16 ',' SCAN_WORD
54ed64e
-		{$$=attrvalue(parsestate,$1,$3,(Object)SCAN_UINT16);}
54ed64e
+		{$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_UINT16);}
54ed64e
 	;
54ed64e
 int32:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_INT32);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_INT32);}
54ed64e
 	| int32 ',' SCAN_WORD
54ed64e
-		{$$=attrvalue(parsestate,$1,$3,(Object)SCAN_INT32);}
54ed64e
+		{$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_INT32);}
54ed64e
 	;
54ed64e
 uint32:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_UINT32);}
54ed64e
-	| uint32 ',' SCAN_WORD  {$$=attrvalue(parsestate,$1,$3,(Object)SCAN_UINT32);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_UINT32);}
54ed64e
+	| uint32 ',' SCAN_WORD  {$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_UINT32);}
54ed64e
 	;
54ed64e
 float32:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_FLOAT32);}
54ed64e
-	| float32 ',' SCAN_WORD  {$$=attrvalue(parsestate,$1,$3,(Object)SCAN_FLOAT32);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_FLOAT32);}
54ed64e
+	| float32 ',' SCAN_WORD  {$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_FLOAT32);}
54ed64e
 	;
54ed64e
 float64:
54ed64e
-	  SCAN_WORD {$$=attrvalue(parsestate,null,$1,(Object)SCAN_FLOAT64);}
54ed64e
-	| float64 ',' SCAN_WORD  {$$=attrvalue(parsestate,$1,$3,(Object)SCAN_FLOAT64);}
54ed64e
+	  SCAN_WORD {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_FLOAT64);}
54ed64e
+	| float64 ',' SCAN_WORD  {$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_FLOAT64);}
54ed64e
 	;
54ed64e
 strs:
54ed64e
-	  str_or_id {$$=attrvalue(parsestate,null,$1,(Object)SCAN_STRING);}
54ed64e
-	| strs ',' str_or_id {$$=attrvalue(parsestate,$1,$3,(Object)SCAN_STRING);}
54ed64e
+	  str_or_id {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_STRING);}
54ed64e
+	| strs ',' str_or_id {$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_STRING);}
54ed64e
 	;
54ed64e
 
54ed64e
 urls:
54ed64e
-	  url {$$=attrvalue(parsestate,null,$1,(Object)SCAN_URL);}
54ed64e
-	| urls ',' url {$$=attrvalue(parsestate,$1,$3,(Object)SCAN_URL);}
54ed64e
+	  url {$$=dap_attrvalue(parsestate,null,$1,(Object)SCAN_URL);}
54ed64e
+	| urls ',' url {$$=dap_attrvalue(parsestate,$1,$3,(Object)SCAN_URL);}
54ed64e
 	;
54ed64e
 
54ed64e
 url:
54ed64e
@@ -239,7 +237,7 @@ name:
54ed64e
 
54ed64e
 errorbody:
54ed64e
 	'{' SCAN_CODE '=' SCAN_WORD ';' SCAN_MESSAGE '=' SCAN_WORD ';' '}' ';'
54ed64e
-		{$$=errorbody(parsestate,$4,$8);}
54ed64e
+		{$$=dap_errorbody(parsestate,$4,$8);}
54ed64e
 	;
54ed64e
 
54ed64e