Skip to content

Commit

Permalink
Created a dummy parser that at least uses yacclib.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@31 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x97davka committed Nov 25, 1997
1 parent bd5a3f6 commit d0321e9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions modeq/ast/modgram.g
Expand Up @@ -28,6 +28,7 @@ typedef struct {
/* #include "AToken.h" */

#include "rml.h"
#include "yacclib.h"
#include "dae.h"
#include "exp.h"
#include "class.h"
Expand Down Expand Up @@ -63,20 +64,20 @@ void zzd_attr(Attrib *attr)
}

#if 1
/* Also see rml-1.3.6/examples/etc/ccall.c */

static void *rml_ast = NULL;
void *parse(struct rml_state *ignored)
{
ANTLR(model_specification(), stdin); /* start first rule */
return rml_ast;
}

void Parser_5finit(void)
{
}

RML_BEGIN_LABEL(Parser__parse)
{
return parse(rmlState);
/* ANTLR(model_specification(), stdin); /* start first rule */
rmlA0 = mk_cons(Class__CLASS(Class__CL_5fMODEL,mk_nil()), mk_nil());

RML_TAILCALLK(rmlSC);
}
RML_END_LABEL
#endif
Expand Down

0 comments on commit d0321e9

Please sign in to comment.