head	1.12;
access;
symbols
	codegen2-regalloc:1.12.0.22
	codegen2:1.12.0.20
	codegen2-no-regalloc:1.12
	opt-regalloc3-merge2:1.12
	opt-sideffect-merge1:1.12
	opt-regalloc3-merge1:1.12
	opt-regalloc3:1.12.0.18
	opt-regalloc3-base:1.12
	opt-sideffect:1.12.0.16
	opt-sideffect-base:1.12
	new-regalloc-thursday:1.12
	codegen2-thursday:1.12
	new-regalloc:1.12.0.14
	new-regalloc-base:1.12
	opt-deadcode:1.12.0.12
	opt-deadcode-base:1.12
	opt-const:1.12.0.10
	opt-const-base:1.12
	opt-copyprop:1.12.0.8
	opt-copyprop-base:1.12
	reg_alloc_branch:1.12.0.6
	reg_alloc_base:1.12
	opt-cse:1.12.0.4
	codegen1_branch:1.12.0.2
	codegen1_base:1.12
	syntax_split_merge2:1.11
	syntax_split:1.11.0.2
	syntax_split_base:1.11
	java_deadline:1.9.4.3.0.2
	java_deadline_branch:1.9.4.3
	java:1.9.0.4
	java_base:1.9
	semantics_branch:1.9.0.2
	semantics_base:1.9
	recovery_branch:1.6.0.2
	recovery_base:1.6
	parser:1.3.0.2
	parser_base:1.3;
locks; strict;
comment	@# @;


1.12
date	96.11.08.02.27.30;	author hartmans;	state Exp;
branches;
next	1.11;

1.11
date	96.10.30.08.55.24;	author daveg;	state Exp;
branches;
next	1.10;

1.10
date	96.10.30.04.43.22;	author daveg;	state Exp;
branches;
next	1.9;

1.9
date	96.10.06.20.58.59;	author daveg;	state Exp;
branches
	1.9.4.1;
next	1.8;

1.8
date	96.10.05.22.09.24;	author jered;	state Exp;
branches;
next	1.7;

1.7
date	96.10.05.21.36.40;	author hartmans;	state Exp;
branches;
next	1.6;

1.6
date	96.10.05.02.28.44;	author daveg;	state Exp;
branches;
next	1.5;

1.5
date	96.09.28.18.53.35;	author hartmans;	state Exp;
branches;
next	1.4;

1.4
date	96.09.23.18.33.33;	author hartmans;	state Exp;
branches;
next	1.3;

1.3
date	96.09.19.04.25.26;	author hartmans;	state Exp;
branches;
next	1.2;

1.2
date	96.09.18.07.27.52;	author daveg;	state Exp;
branches;
next	1.1;

1.1
date	96.09.18.04.34.34;	author daveg;	state Exp;
branches;
next	;

1.9.4.1
date	96.10.20.04.51.01;	author nathanw;	state Exp;
branches;
next	1.9.4.2;

1.9.4.2
date	96.10.20.06.18.50;	author nathanw;	state Exp;
branches;
next	1.9.4.3;

1.9.4.3
date	96.10.23.12.26.22;	author daveg;	state Exp;
branches;
next	;


desc
@@


1.12
log
@* a compiling parser
@
text
@# Sample Makefile for 6.035
SRCTOP=..
#
# This is a simple Makefile, using PCLU.
#

LIBSRCS = parser.clu \
	 lrmachine.clu recover.clu statics.clu \
	syntax.clu
SRCS =
LIBNAME=parser
CLULIBS = scanner parser state il ilgen
EQUS = $(SRCTOP)/scanner/token.equ $(SRCTOP)/state/types.equ $(SRCTOP)/il/il.equ
LIBS = $(SPEC_LIBS) -use $(LIBDIR)/useful.lib  -use $(LIBDIR)/misc.lib



parser.clu: parser.clucc
	clucc parser.clucc

clean::
	rm -f *.o parser.lib utils.lib clu.junk pclu.xref clucc.junk

include ../mk/pclu.mk
include ../mk/lib.mk

@


1.11
log
@remove unused PROG directive
@
text
@d8 2
a9 1
	 lrmachine.clu recover.clu statics.clu
d12 2
a13 2
CLULIBS = scanner parser state
EQUS = $(SRCTOP)/scanner/token.equ $(SRCTOP)/state/types.equ
@


1.10
log
@main.clu now lives in base dir
@
text
@a9 1
PROG = parser
a24 1
include ../mk/prog.mk
@


1.9
log
@fixed lots of minor bugs in statics.clu, appropriate mods to Makefile,
a few related changes to parser.clucc, changing function names
@
text
@d9 1
a9 1
SRCS = main.clu 
@


1.9.4.1
log
@First (large) commit of java codegen
@
text
@d8 1
a8 1
	 lrmachine.clu recover.clu statics.clu javagen.clu
@


1.9.4.2
log
@Fixed the excessive typos and thinkos
@
text
@d7 2
a8 2
LIBSRCS = parser.clu lrmachine.clu recover.clu statics.clu javagen.clu \
          syntax.clu
@


1.9.4.3
log
@fixed minor bugs
@
text
@d8 1
a8 1
          syntax.clu output.clu
@


1.8
log
@Added rules for local declarations.
@
text
@d12 2
a13 2
CLULIBS = scanner parser
EQUS = $(SRCTOP)/scanner/token.equ
@


1.7
log
@Remove state files.
@
text
@d8 1
a8 1
	 lrmachine.clu recover.clu
@


1.6
log
@added recover.clu
@
text
@d8 1
a8 1
	attribs.clu compiler_state.clu lrmachine.clu recover.clu
@


1.5
log
@Fix errors indicated by hidden test cases.

Look for token.equ in scanner directory.

  CVS:
----------------------------------------------------------------------
automatically CVS: CVS: Committing in .  CVS: CVS: Modified Files:
----------------------------------------------------------------------
@
text
@a6 3
CP = cp


d8 1
a8 1
	attribs.clu compiler_state.clu lrmachine.clu
@


1.4
log
@Commit new build system:

The mk directory contains make fragments that are useful in various
parts of the tree.

pclu.mk:  required by all Makefiles
prog.mk:  For Makefiles that build a program
ib.mk: Required for Makefiles that build libs

The Makefiles have been changed to use this system.  You need to make
a directory $(SRCTOP)/lib for the .a and .lib files to get plopped
into.  Also, note that files are copied not linked currently, this
should change.
@
text
@d16 1
a16 1
EQUS = token.equ
@


1.3
log
@Update grammar to have start symbol.

Get scanner from right place.
@
text
@d2 1
a8 1
.SUFFIXES: .clu .equ .lib .o
d10 1
a10 1
LIB_SRCS = lex.clu token.clu keyword_table.clu parser.clu \
d12 4
a15 3
EXE_SRCS = main.clu $(LIB_SRCS)
LIB_OBJS = $(LIB_SRCS:.clu=.o)
EXE_OBJS = $(EXE_SRCS:.clu=.o)
d17 1
a18 4
SCANNERDIR = ../scanner
LIBDIR = /mit/PCLU/lib/lib
# useful.lib is used to get hash function
LIBS = -use parser.lib -use $(LIBDIR)/useful.lib  -use $(LIBDIR)/misc.lib
a19 1
PCLU = PCLU
a20 23
#
# use -debug to generate "debugable", -optimize to generate "executable"
#

# PCLUFLAGS = -debug
PCLUFLAGS = -optimize

# the first thing listed will be generated when you type "make"

parser: parser.lib $(EXE_SRCS) $(EQUS) $(EXE_OBJS)
	$(PCLU) $(PCLUFLAGS) -link $@@ $(EXE_OBJS)

parser.lib: $(LIB_SRCS) $(EQUS)
	$(PCLU) $(PCLUFLAGS) -spec $(LIB_SRCS) $(EQUS) -create $@@

lex.clu: $(SCANNERDIR)/lex.clu
	$(CP) $(SCANNERDIR)/lex.clu .
token.clu: $(SCANNERDIR)/token.clu
	$(CP) $(SCANNERDIR)/token.clu .
token.equ: $(SCANNERDIR)/token.equ
	$(CP) $(SCANNERDIR)/token.equ .
keyword_table.clu: $(SCANNERDIR)/keyword_table.clu
	$(CP) $(SCANNERDIR)/keyword_table.clu .
d24 6
a29 2
.clu.o: 
	$(PCLU) $(PCLUFLAGS) $< $(EQUS) $(LIBS)
a30 2
clean:
	rm -f *.o parser.lib utils.lib clu.junk pclu.xref clucc.junk
@


1.2
log
@added rules for parser.clu, token.equ
@
text
@d17 1
a17 1
SCANNERDIR = /mit/6.035/groups/le06/scanner
@


1.1
log
@Initial commit's of TA supplied code
@
text
@d43 2
d47 2
d54 1
a54 1
	rm -f *.o parser.lib utils.lib clu.junk pclu.xref
@
