Eliminate flex as the GLSL lexical analyzer, going from two nested lexical analyzers...
authorJohn Kessenich <cepheus@frii.com>
Sat, 6 Jul 2013 19:54:21 +0000 (19:54 +0000)
committerJohn Kessenich <cepheus@frii.com>
Sat, 6 Jul 2013 19:54:21 +0000 (19:54 +0000)
commit5f1a0b7998132b39c41fbe28d44bcb4bbd53bcd9
tree3a15de2c3e5b5296c32e76c597528aa4a28adf5a
parent73ed17a87beafc5951b76ff0b823965c040fd1f0
Eliminate flex as the GLSL lexical analyzer, going from two nested lexical analyzers down to one, leaving just the preprocessor's lexical analysis.  A new layer replaces it, to translate from the preprocessor's view of tokenization to glslang's view of tokenization.

Also:
 - change source locations from an int to TSourceLoc (shader number, line number) throughout
 - various improvements to the preprocessor

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22277 e7fa87d3-cd2b-0410-9028-fcbf551c1848
35 files changed:
Test/cppSimple.vert
Test/lineContinuation.vert
Test/tokenLength.vert
glslang.vcxproj
glslang.vcxproj.filters
glslang/Include/Common.h
glslang/Include/InfoSink.h
glslang/Include/Types.h
glslang/Include/intermediate.h
glslang/MachineIndependent/Constant.cpp
glslang/MachineIndependent/Initialize.h
glslang/MachineIndependent/Intermediate.cpp
glslang/MachineIndependent/ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.h
glslang/MachineIndependent/Scan.cpp
glslang/MachineIndependent/Scan.h
glslang/MachineIndependent/ScanContext.h [new file with mode: 0644]
glslang/MachineIndependent/ShaderLang.cpp
glslang/MachineIndependent/Versions.cpp
glslang/MachineIndependent/glslang.l [deleted file]
glslang/MachineIndependent/glslang.y
glslang/MachineIndependent/intermOut.cpp
glslang/MachineIndependent/localintermediate.h
glslang/MachineIndependent/parseConst.cpp
glslang/MachineIndependent/preprocessor/atom.c
glslang/MachineIndependent/preprocessor/compile.h [deleted file]
glslang/MachineIndependent/preprocessor/cpp.c
glslang/MachineIndependent/preprocessor/cpp.h
glslang/MachineIndependent/preprocessor/cppstruct.c
glslang/MachineIndependent/preprocessor/parser.h
glslang/MachineIndependent/preprocessor/preprocess.h
glslang/MachineIndependent/preprocessor/scanner.c
glslang/MachineIndependent/preprocessor/scanner.h
glslang/MachineIndependent/preprocessor/slglobals.h
glslang/MachineIndependent/preprocessor/tokens.c