Merge BuDDy 2.3.
* examples/calculator/, examples/internal/: Were renamed as ... * examples/bddcalc/, examples/bddtest/: ... these. * configure.ac: Adjust version and output Makefiles. * examples/Makefile.am (SUBDIRS): Adjust subdir renaming. * examples/cmilner/milner.c, examples/fdd/statespace.cxx: Were renamed as ... * examples/cmilner/cmilner.c, examples/fdd/fdd.cxx: ... these. * examples/cmilner/Makefile.am, examples/fdd/Makefile.am: Adjust accordingly. * src/Makefile.am (AM_CPPFLAGS): Define VERSION.
This commit is contained in:
parent
805b6fb70b
commit
aa4a582f1b
27 changed files with 130 additions and 796 deletions
44
buddy/examples/bddcalc/parser_.h
Normal file
44
buddy/examples/bddcalc/parser_.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/*************************************************************************
|
||||
FILE: parser.h
|
||||
DESCR: parser defs. for BDD calculator
|
||||
AUTH: Jorn Lind
|
||||
DATE: (C) may 1999
|
||||
*************************************************************************/
|
||||
|
||||
#ifndef _PARSER_H
|
||||
#define _PARSER_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include "bdd.h"
|
||||
|
||||
#define MAXIDLEN 32 /* Max. number of allowed characters in an identifier */
|
||||
|
||||
struct token /* BISON token data */
|
||||
{
|
||||
char id[MAXIDLEN+1];
|
||||
char *str;
|
||||
int ival;
|
||||
bdd *bval;
|
||||
};
|
||||
|
||||
#define YYSTYPE token
|
||||
#define YY_SKIP_YYWRAP
|
||||
#define YY_NO_UNPUT
|
||||
#define yywrap() (1)
|
||||
|
||||
extern YYSTYPE yylval; /* Declare for flex user */
|
||||
extern void yyerror(char *,...); /* Declare for flex and bison */
|
||||
extern FILE *yyin;
|
||||
extern int yylex(void); /* Declare for bison */
|
||||
extern int yyparse(void); /* Declare for bison user */
|
||||
extern int linenum; /* Declare for error handler */
|
||||
|
||||
/* Use this instead of strdup() to avoid malloc() */
|
||||
inline char *sdup(const char *s)
|
||||
{
|
||||
return strcpy(new char[strlen(s)+1], s);
|
||||
}
|
||||
|
||||
#endif /* _PARSER_H */
|
||||
|
||||
/* EOF */
|
||||
Loading…
Add table
Add a link
Reference in a new issue