summaryrefslogtreecommitdiffstats
path: root/fpgaedit.c
blob: ad14b9ba83412b72ac53412d27598ae06e3dfda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* 
 *    $Id$
 * 
 */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

#include "config.h"
#include "fpgaedit_parser.h"
    
int verbose;

int main (int argc, char *argv[])
{
	struct arg_t *kom_arg;

	kom_arg = Cmdline (argc, argv);
	
	if (kom_arg->v)
	{
		printf ("%s: version %s\n", argv[0], PACKAGE_VERSION);
		return EXIT_FAILURE;
	}
	
	verbose = kom_arg->V; 
	
	yyparse ();
	
	return EXIT_SUCCESS;
}

void yyerror (const char *s)  /* Called by yyparse on error */
{
	printf ("%s\n", s);
}