• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Feb-2022-

tests/H07-May-2022-2,9991,593

READMEH A D09-Feb-20221 KiB3022

glcpp-lex.lH A D09-Feb-202216.4 KiB622364

glcpp-parse.yH A D09-Feb-202272.2 KiB2,5571,848

glcpp.cH A D09-Feb-20224.3 KiB184128

glcpp.hH A D09-Feb-20226.5 KiB279194

meson.buildH A D09-Feb-20224.3 KiB130116

pp.cH A D09-Feb-20227.1 KiB257149

pp_standalone_scaffolding.cH A D09-Feb-20221.8 KiB5823

pp_standalone_scaffolding.hH A D09-Feb-20221.8 KiB4813

README

1glcpp -- GLSL "C" preprocessor
2
3This is a simple preprocessor designed to provide the preprocessing
4needs of the GLSL language. The requirements for this preprocessor are
5specified in the GLSL 1.30 specification availble from:
6
7http://www.opengl.org/registry/doc/GLSLangSpec.Full.1.30.10.pdf
8
9This specification is not precise on some semantics, (for example,
10#define and #if), defining these merely "as is standard for C++
11preprocessors". To fill in these details, I've been using a draft of
12the C99 standard as available from:
13
14http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
15
16Any downstream compiler accepting output from glcpp should be prepared
17to encounter and deal with the following preprocessor macros:
18
19	#line
20	#pragma
21	#extension
22
23All other macros will be handled according to the GLSL specification
24and will not appear in the output.
25
26Known limitations
27-----------------
28A file that ends with a function-like macro name as the last
29non-whitespace token will result in a parse error, (where it should be
30passed through as is).