1: // The Cg Language definition file for Web C Plus Plus
2: // Generated by Jeffrey Bakker<jefskey@yahoo.com> using genlang.cgi
3: // genlang.cgi Copyright (C) 2002 Jeffrey Bakker
4:
5: #include "langcg.h"
6:
7: LangCg ::LangCg() {
8:
9: fill();
10: init_switches();
11:
12: doSymbols = Yes;
13: doPreProc = Yes;
14: doCinComnt = Yes;
15: doBigComnt = Yes;
16: }
17:
18: void LangCg ::fill() {
19:
20: string K[] = {
21: "break",
22: "case",
23: "const",
24: "continue",
25: "default",
26: "discard",
27: "do",
28: "else",
29: "enum",
30: "extern",
31: "false",
32: "for",
33: "function",
34: "goto",
35: "if",
36: "return",
37: "struct",
38: "switch",
39: "true",
40: "typedef",
41: "uniform",
42: "while"
43: };
44: for(int k=0;k < 22;k++) {keys.push_back(K[k]);}
45:
46: string T[] = {
47: "bool",
48: "float4x4",
49: "float4",
50: "float3x3",
51: "float3",
52: "float2x2",
53: "float2",
54: "float",
55: "in",
56: "inout",
57: "int",
58: "out",
59: "static",
60: "void",
61: "volatile",
62: };
63: for(int t=0;t < 15;t++) {types.push_back(T[t]);}
64: }
65:
| w | e | b | c | p | p |
|
| |||||