Converted from flex and yacc to e_flex and antelope.

This commit is contained in:
Janet B. Anderson
1994-11-23 19:48:14 +00:00
parent 2fb0212252
commit 02310d0bd4
3 changed files with 17 additions and 6 deletions

View File

@@ -2,14 +2,20 @@ EPICS = ../../../..
include Target.include
include $(EPICS)/config/CONFIG_BASE
LEX = $(ELEX)
YACC = $(EYACC)
#YACCOPT = -l
#LEXOPT = -L
USR_LDLIBS = -ll
YACCOPT = -d -v
SRCS.c = ../snc_main.c ../parse.c ../phase2.c ../gen_ss_code.c \
../gen_tables.c sncVersion.c snc.c snc_lex.c
SRCS.c = ../parse.c ../phase2.c ../gen_ss_code.c \
../gen_tables.c sncVersion.c snc.c
OBJS = snc_main.o parse.o phase2.o gen_ss_code.o \
gen_tables.o sncVersion.o snc.o snc_lex.o
OBJS = parse.o phase2.o gen_ss_code.o \
gen_tables.o sncVersion.o snc.o
PROD = snc
@@ -20,6 +26,8 @@ include $(EPICS)/config/RULES.Unix
#
snc_lex.c: snc.h
snc.o: snc_lex.c
sncVersion.c: ../Version
$(RM) sncVersion.c
sh ../makeVersion ../Version > sncVersion.c

View File

@@ -321,4 +321,5 @@ global_c
: C_STMT { global_c_stmt($1); }
;
%%
#include "snc_lex.c"
#include "snc_main.c"

View File

@@ -22,8 +22,10 @@
* Comments are recognized as part of the syntax.
*/
/*
#include "parse.h"
#include "snc.h" /* output from yacc */
#include "snc.h"
*/
#ifndef TRUE
#define TRUE 1
#define FALSE 0