summaryrefslogtreecommitdiff
path: root/minic/parse.c
blob: 0658908356b982bfff03edcd94231bff84a16fd9 (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
#include "parse.h"

#include "io.h"

void parser_init( Parser *p, Scanner *s )
{
	p->s = s;
}

void parser_done( Parser *p )
{
}

void parser_debug( Parser *p, int enable )
{
	p->debug = enable;
	
	if( p->debug ) {
		print( "PARSER DEBUGGING ENABLED" );
	}
}

void parser_parse( Parser *p )
{
	scanner_Symbol s;

	s = scanner_scan( p->s );
	
	while( s.sym != S_eof ) {
	}
}