Hash :
5efb36b9
Author :
Date :
2019-11-25T16:14:55
Automatically call flex/bison if necessary ANGLE translator's parser code generation is changed to use the binaries of flex/bison stored in the cloud. scripts/run_code_generation.py now automatically runs these files if the input files change. Bug: angleproject:3419 Change-Id: Icce4247f93b27baf8ee12dbb16112fa2cc98c111 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1940572 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
#!/usr/bin/python
# Copyright 2019 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# generate_parser.py:
# Generate lexer and parser for ANGLE's shader preprocessor.
import sys
sys.path.append('..')
import generate_parser_tools
basename = 'preprocessor'
def main():
return generate_parser_tools.generate_parser(basename, False)
if __name__ == '__main__':
sys.exit(main())