#include <stdio.h>

/**
 * Defines the type for a list of cells.
 */
typedef struct celllist {
    long x;
    long y;
    long xy; /* x + y */
    char alive;
    struct celllist *next;
    struct celllist *prev;
} CellList;

extern FILE *infile;

int yyparse(void);
void setAlive(long x, long y);
