1988-07-04 11:45:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
|
|
|
|
2019-03-01 17:35:09 +00:00
|
|
|
/*#include "bem.h"*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "system.h"
|
|
|
|
#include "gencode.h"
|
1988-07-04 11:45:41 +00:00
|
|
|
#include "bem.h"
|
|
|
|
|
2019-03-01 17:35:09 +00:00
|
|
|
#ifndef NORCSID
|
1994-06-24 11:31:16 +00:00
|
|
|
static char rcs_id[] = "$Id$" ;
|
1988-07-04 11:45:41 +00:00
|
|
|
#endif
|
|
|
|
|
2019-03-01 17:35:09 +00:00
|
|
|
extern int getinputline(void);
|
|
|
|
extern void LLparse(void);
|
1988-07-04 11:45:41 +00:00
|
|
|
|
|
|
|
/* compile the next program in the list */
|
|
|
|
/* Here we should open the input file. (for the future) */
|
|
|
|
|
|
|
|
File *yyin;
|
|
|
|
|
2019-03-01 17:35:09 +00:00
|
|
|
void compileprogram(void)
|
1988-07-04 11:45:41 +00:00
|
|
|
{
|
|
|
|
extern int basicline;
|
|
|
|
|
|
|
|
prologcode();
|
|
|
|
prolog2(); /* Some statements are moved from prolog2 to
|
|
|
|
epilogcode in the new version of the compiler */
|
|
|
|
|
2013-05-14 17:01:38 +00:00
|
|
|
while( basicline = 0, getinputline())
|
2019-03-01 17:35:09 +00:00
|
|
|
{
|
|
|
|
LLparse();
|
|
|
|
}
|
1988-07-04 11:45:41 +00:00
|
|
|
epilogcode();
|
1993-11-10 12:35:33 +00:00
|
|
|
sys_close(yyin);
|
1988-07-04 11:45:41 +00:00
|
|
|
}
|