mirror of https://gitlab.com/ita1024/waf
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			358 B
		
	
	
	
		
			C
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			358 B
		
	
	
	
		
			C
		
	
#include <stdio.h>
 | 
						|
/* this file should work in both c and c++ */
 | 
						|
extern int yyparse();
 | 
						|
 | 
						|
int yyerror (char const *a)
 | 
						|
{
 | 
						|
	printf("yyerror: (%s)\n", a);
 | 
						|
	return 1;
 | 
						|
}
 | 
						|
 | 
						|
int main(int argc, char *argv[])
 | 
						|
{
 | 
						|
	int yy;
 | 
						|
	yy = yyparse();
 | 
						|
	if (yy != 0)
 | 
						|
	{
 | 
						|
		printf("Syntax or parse error %i. Aborting.\n", yy);
 | 
						|
		return 1;
 | 
						|
	}
 | 
						|
	else{
 | 
						|
		printf("Success.\n");
 | 
						|
	}
 | 
						|
	return 0;
 | 
						|
}
 |