How to set up lex and Yacc with Xcode 4? What custom script should I write in the Build Rules to do that?
I have one lex file abc.l and one yacc file cba.y both placed in the same directory as that of other project source files. parser.ymm
%{
#include<iostream>
#include<stdio.h>
#include "querystructure.h"
using namespace std;
static int col_id = 0;
extern void yyerror (char* message);
extern int yylex ();
%}
lexer.l/lexer.lm
%{
#include <stdio.h>
#include "y.tab.h"
%}