Skip to content
Snippets Groups Projects
Commit 148cd5a6 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

xaxparse argument: PNode* -> RNode*

parent b3155e59
No related branches found
No related tags found
No related merge requests found
...@@ -170,11 +170,11 @@ e { ...@@ -170,11 +170,11 @@ e {
<<EOF>> { return END; } <<EOF>> { return END; }
%% %%
int xaxparse( PNode* ); int xaxparse( RNode* );
std::shared_ptr<const class CNode> user_xaxparse( const char *lin ) std::shared_ptr<const class CNode> user_xaxparse( const char *lin )
{ {
PNode T; RNode T;
int err; int err;
xax_scan_string(lin); xax_scan_string(lin);
err=xaxparse( &T ); err=xaxparse( &T );
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "coord.hpp" #include "coord.hpp"
#include "node.hpp" #include "node.hpp"
int xaxerror( PNode* T, const char *s ) int xaxerror( RNode* T, const char *s )
{ {
throw( string( "invalid expression: " ) + s ); throw( string( "invalid expression: " ) + s );
return 1; return 1;
...@@ -40,7 +40,7 @@ struct xaxtype { ...@@ -40,7 +40,7 @@ struct xaxtype {
#define YYSTYPE xaxtype #define YYSTYPE xaxtype
#define YYERROR_VERBOSE 1 #define YYERROR_VERBOSE 1
int xaxerror( PNode* T, const char*); int xaxerror( RNode* T, const char*);
int xaxlex(YYSTYPE *xaxlval); // created by lex.l int xaxlex(YYSTYPE *xaxlval); // created by lex.l
#define MONFUNC(op,v1) \ #define MONFUNC(op,v1) \
...@@ -51,7 +51,7 @@ int xaxlex(YYSTYPE *xaxlval); // created by lex.l ...@@ -51,7 +51,7 @@ int xaxlex(YYSTYPE *xaxlval); // created by lex.l
RNode( new CNodeFun3(GFuncRegistry->find_or_fail(op),v1.t,v2.t,v3.t) ) RNode( new CNodeFun3(GFuncRegistry->find_or_fail(op),v1.t,v2.t,v3.t) )
%} %}
%parse-param{ PNode* T } %parse-param{ RNode* T }
%pure-parser %pure-parser
%debug %debug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment