1#!/bin/bash
2# Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6# Generates GLSL ES parser - glslang_tab.h and glslang_tab.cpp
7
8script_dir=$(dirname $0)
9input_file=$script_dir/glslang.y
10output_header=$script_dir/glslang_tab.h
11output_source=$script_dir/glslang_tab.cpp
12bison --no-lines --skeleton=yacc.c --defines=$output_header --output=$output_source $input_file
13