9 changed files with 157 additions and 156 deletions
-
13src/frontend/Makefile.am
-
17src/frontend/parse-bison-y.h
-
74src/frontend/parse-bison.y
-
41src/frontend/parse.c
-
12src/spicelib/parser/Makefile.am
-
16src/spicelib/parser/inpptree-parser-y.h
-
84src/spicelib/parser/inpptree-parser.y
-
23src/spicelib/parser/inpptree.c
-
33src/xspice/cmpp/Makefile.am
@ -0,0 +1,17 @@ |
|||
struct PPltype { |
|||
const char *start, *stop; |
|||
}; |
|||
|
|||
extern int PPlex(YYSTYPE *lvalp, struct PPltype *llocp, char **line); |
|||
extern int PPdebug; |
|||
|
|||
extern struct pnode *PP_mkunode(int op, struct pnode *arg); |
|||
extern struct pnode *PP_mkfnode(const char *func, struct pnode *arg); |
|||
extern struct pnode *PP_mknnode(double number); |
|||
extern struct pnode *PP_mkbnode(int opnum, struct pnode *arg1, struct pnode *arg2); |
|||
extern struct pnode *PP_mksnode(const char *string); |
|||
|
|||
|
|||
#if defined (_MSC_VER) |
|||
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */ |
|||
#endif |
|||
@ -0,0 +1,16 @@ |
|||
struct PTltype { |
|||
char *start, *stop; |
|||
}; |
|||
|
|||
extern int PTlex(YYSTYPE *lvalp, struct PTltype *llocp, char **line); |
|||
extern int PTdebug; |
|||
|
|||
extern INPparseNode *PT_mkbnode(const char *opstr, INPparseNode *arg1, INPparseNode *arg2); |
|||
extern INPparseNode *PT_mkfnode(const char *fname, INPparseNode *arg); |
|||
extern INPparseNode *PT_mknnode(double number); |
|||
extern INPparseNode *PT_mksnode(const char *string, void *ckt); |
|||
|
|||
|
|||
#if defined (_MSC_VER) |
|||
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */ |
|||
#endif |
|||
@ -1,30 +1,29 @@ |
|||
## Process this file with automake to produce Makefile.in
|
|||
|
|||
BUILT_SOURCES = ifs_lex.c ifs_yacc.c ifs_yacc.h mod_lex.c mod_yacc.c mod_yacc.h |
|||
BUILT_SOURCES = ifs_yacc.h mod_yacc.h |
|||
|
|||
EXTRA_DIST = ifs_lex.l mod_lex.l ifs_yacc.h mod_yacc.h .gitignore |
|||
EXTRA_DIST = .gitignore |
|||
|
|||
MAINTAINERCLEANFILES = Makefile.in |
|||
|
|||
LEX = flex |
|||
BISON = bison |
|||
|
|||
bin_PROGRAMS = cmpp |
|||
|
|||
cmpp_SOURCES = cmpp.h main.c pp_ifs.c pp_lst.c pp_mod.c read_ifs.c util.c \
|
|||
writ_ifs.c ifs_yacc_y.h ifs_yacc.y ifs_lex.c mod_yacc_y.h mod_yacc.y \
|
|||
mod_lex.c |
|||
AM_CPPFLAGS = -I. -I$(srcdir) |
|||
AM_YFLAGS = -d |
|||
|
|||
cmpp_SOURCES = main.c cmpp.h \
|
|||
pp_ifs.c pp_lst.c pp_mod.c read_ifs.c writ_ifs.c util.c \
|
|||
ifs_lex.l ifs_yacc.y ifs_yacc_y.h \
|
|||
mod_lex.l mod_yacc.y mod_yacc_y.h |
|||
|
|||
mod_lex.o : mod_yacc.h |
|||
mod_lex.c : mod_lex.l |
|||
$(LEX) -o$@ $< |
|||
$(am__skiplex) $(LEXCOMPILE) -o $@ $< |
|||
|
|||
ifs_lex.o : ifs_yacc.h |
|||
ifs_lex.c : ifs_lex.l |
|||
$(LEX) -o$@ $< |
|||
mod_yacc.c : mod_yacc.y |
|||
$(am__skipyacc) $(YACCCOMPILE) -o $@ $< |
|||
|
|||
ifs_yacc.c ifs_yacc.h : ifs_yacc.y |
|||
$(BISON) $(BISONFLAGS) -d -o ifs_yacc.c $< |
|||
ifs_lex.c : ifs_lex.l |
|||
$(am__skiplex) $(LEXCOMPILE) -o $@ $< |
|||
|
|||
mod_yacc.c mod_yacc.h : mod_yacc.y |
|||
$(BISON) $(BISONFLAGS) -d -o mod_yacc.c $< |
|||
ifs_yacc.c : ifs_yacc.y |
|||
$(am__skipyacc) $(YACCCOMPILE) -o $@ $< |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue