flexdriver.c

Index

/* 
 * Main procedure for flex-based front ends
 *  to the GRind packages.
 *
 */

#include "gr.h"
#include "groptions.h"

int 
main(int argc, char *argv[]) {
  int token; 
  int i; 
  getoptions(argc, argv); 
  init_gr(); 
  for (i=0; i<optblock.headings_count; i++) {
        heading(optblock.headings[i].tag, optblock.headings[i].content); 
  }
  while (token = yylex()) /* Side effect */ ; 
  end_gr(); 
}

Index

  • main (function) returns int