Web: Prune grammar and lexor down to needed subset.
authorJohn Kessenich <cepheus@frii.com>
Wed, 7 Aug 2019 05:16:35 +0000 (23:16 -0600)
committerJohn Kessenich <cepheus@frii.com>
Wed, 21 Aug 2019 05:21:55 +0000 (23:21 -0600)
commit441b2ac4d16ef5370bd7d2143bd77870cfc8ff74
treea1c0678e8289440be38cdfaacc38d9c6821d34ba
parenta28f7a75d1aee8d1c89f9c237400278603e8ab9f
Web: Prune grammar and lexor down to needed subset.

About 60K smaller (20% the target size is these units of 300K).
Over 300 fewer #ifdef.

This adds a new glslang.m4 file that needs to be processed by m4 to get
the glslang.y file needed by bison.  See comment in glslang.m4 for more
detail.

This updates the updateGrammar script to do the .m4 -> .y processing,
to conditionally exclude grammar not needed for the web build.
glslang/CMakeLists.txt
glslang/MachineIndependent/Scan.cpp
glslang/MachineIndependent/glslang.m4 [new file with mode: 0644]
glslang/MachineIndependent/glslang.y
glslang/MachineIndependent/glslang_tab.cpp
glslang/MachineIndependent/glslang_tab.cpp.h
glslang/updateGrammar