author  Ryan C. Gordon <icculus@icculus.org> 
Fri, 13 Feb 2009 01:39:19 0500  
changeset 602  9c976d7465bf 
parent 600  f42d58194dc1 
child 613  f48e56a16437 
permissions  rwrr 
602
9c976d7465bf
Updated re2cgenerated code again.
Ryan C. Gordon <icculus@icculus.org>
parents:
600
diff
changeset

1 
/* Generated by re2c 0.12.1 on Fri Feb 13 01:08:10 2009 */ 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

2 
/** 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

3 
* MojoShader; generate shader programs from bytecode of compiled 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

4 
* Direct3D shaders. 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

5 
* 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

6 
* Please see the file LICENSE.txt in the source's root directory. 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

7 
* 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

8 
* This file written by Ryan C. Gordon. 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

9 
*/ 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

10 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

11 
// This was originally based on examples/ppc.re from re2c: http://re2c.org/ 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

12 
// re2c is public domain code. 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

13 
// 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

14 
// You build mojoshader_lexer_preprocessor.c from the .re file with re2c... 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

15 
// re2c is o mojoshader_lexer_preprocessor.c mojoshader_lexer_preprocessor.re 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

16 
// 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

17 
// Changes to the lexer are done to the .re file, not the C code! 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

18 
// 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

19 
// Please note that this isn't a perfect C lexer, since it is used for both 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

20 
// HLSL and shader assembly language, and follows the quirks of Microsoft's 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

21 
// tools. 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

22 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

23 
#define __MOJOSHADER_INTERNAL__ 1 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

24 
#include "mojoshader_internal.h" 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

25 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

26 
typedef unsigned char uchar; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

27 

580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

28 
#define RET(t) do { update_state(s, cursor, token); return t; } while (0) 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

29 
#define YYCTYPE uchar 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

30 
#define YYCURSOR cursor 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

31 
#define YYLIMIT limit 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

32 
#define YYMARKER s>lexer_marker 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

33 
#define YYFILL(n) { if ((n) == 1) { RET(TOKEN_EOI); } } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

34 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

35 
static void update_state(IncludeState *s, const uchar *cur, const uchar *tok) 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

36 
{ 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

37 
s>bytes_left = (unsigned int) (cur  ((const uchar *) s>source)); 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

38 
s>source = (const char *) cur; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

39 
s>token = (const char *) tok; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

40 
} // update_state 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

41 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

42 
Token preprocessor_internal_lexer(IncludeState *s) 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

43 
{ 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

44 
const uchar *cursor = (const uchar *) s>source; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

45 
const uchar *token; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

46 
const uchar *matchptr; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

47 
const uchar *limit = cursor + s>bytes_left; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

48 
int saw_newline = 0; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

49 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

50 
scanner_loop: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

51 
token = cursor; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

52 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

53 
if (YYLIMIT == YYCURSOR) 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

54 
RET(TOKEN_EOI); 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

55 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

56 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

57 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

58 

940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

59 
{ 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

60 
YYCTYPE yych; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

61 
unsigned int yyaccept = 0; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

62 

580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

63 
if((YYLIMIT  YYCURSOR) < 8) YYFILL(8); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

64 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

65 
switch(yych) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

66 
case 0x09: 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

67 
case 0x0B: 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

68 
case 0x0C: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

69 
case ' ': goto yy62; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

70 
case 0x0A: goto yy64; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

71 
case 0x0D: goto yy66; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

72 
case '!': goto yy34; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

73 
case '"': goto yy13; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

74 
case '#': goto yy36; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

75 
case '%': goto yy24; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

76 
case '&': goto yy28; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

77 
case '\'': goto yy9; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

78 
case '(': goto yy38; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

79 
case ')': goto yy40; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

80 
case '*': goto yy22; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

81 
case '+': goto yy18; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

82 
case ',': goto yy46; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

83 
case '': goto yy20; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

84 
case '.': goto yy11; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

85 
case '/': goto yy2; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

86 
case '0': goto yy6; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

87 
case '1': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

88 
case '2': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

89 
case '3': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

90 
case '4': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

91 
case '5': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

92 
case '6': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

93 
case '7': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

94 
case '8': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

95 
case '9': goto yy8; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

96 
case ':': goto yy50; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

97 
case ';': goto yy52; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

98 
case '<': goto yy16; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

99 
case '=': goto yy32; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

100 
case '>': goto yy14; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

101 
case '?': goto yy58; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

102 
case 'A': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

103 
case 'B': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

104 
case 'C': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

105 
case 'D': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

106 
case 'E': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

107 
case 'F': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

108 
case 'G': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

109 
case 'H': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

110 
case 'I': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

111 
case 'J': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

112 
case 'K': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

113 
case 'L': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

114 
case 'M': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

115 
case 'N': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

116 
case 'O': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

117 
case 'P': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

118 
case 'Q': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

119 
case 'R': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

120 
case 'S': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

121 
case 'T': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

122 
case 'U': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

123 
case 'V': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

124 
case 'W': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

125 
case 'X': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

126 
case 'Y': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

127 
case 'Z': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

128 
case '_': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

129 
case 'a': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

130 
case 'b': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

131 
case 'c': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

132 
case 'd': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

133 
case 'e': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

134 
case 'f': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

135 
case 'g': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

136 
case 'h': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

137 
case 'i': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

138 
case 'j': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

139 
case 'k': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

140 
case 'l': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

141 
case 'm': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

142 
case 'n': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

143 
case 'o': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

144 
case 'p': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

145 
case 'q': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

146 
case 'r': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

147 
case 's': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

148 
case 't': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

149 
case 'u': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

150 
case 'v': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

151 
case 'w': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

152 
case 'x': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

153 
case 'y': 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

154 
case 'z': goto yy4; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

155 
case '[': goto yy42; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

156 
case '\\': goto yy60; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

157 
case ']': goto yy44; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

158 
case '^': goto yy26; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

159 
case '{': goto yy54; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

160 
case '': goto yy30; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

161 
case '}': goto yy56; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

162 
case '~': goto yy48; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

163 
default: goto yy67; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

164 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

165 
yy2: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

166 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

167 
if((yych = *YYCURSOR) <= '.') { 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

168 
if(yych == '*') goto yy230; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

169 
} else { 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

170 
if(yych <= '/') goto yy228; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

171 
if(yych == '=') goto yy226; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

172 
} 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

173 
{ RET('/'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

174 
yy4: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

175 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

176 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

177 
goto yy225; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

178 
yy5: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

179 
{ RET(TOKEN_IDENTIFIER); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

180 
yy6: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

181 
yyaccept = 0; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

182 
yych = *(YYMARKER = ++YYCURSOR); 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

183 
if(yych <= 'X') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

184 
if(yych <= 'T') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

185 
if(yych == 'L') goto yy200; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

186 
goto yy216; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

187 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

188 
if(yych <= 'U') goto yy200; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

189 
if(yych <= 'W') goto yy216; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

190 
goto yy217; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

191 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

192 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

193 
if(yych <= 't') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

194 
if(yych == 'l') goto yy200; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

195 
goto yy216; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

196 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

197 
if(yych <= 'u') goto yy200; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

198 
if(yych == 'x') goto yy217; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

199 
goto yy216; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

200 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

201 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

202 
yy7: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

203 
{ RET(TOKEN_INT_LITERAL); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

204 
yy8: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

205 
yyaccept = 0; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

206 
yych = *(YYMARKER = ++YYCURSOR); 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

207 
goto yy198; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

208 
yy9: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

209 
yyaccept = 1; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

210 
yych = *(YYMARKER = ++YYCURSOR); 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

211 
if(yych == 0x0A) goto yy10; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

212 
if(yych != 0x0D) goto yy188; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

213 
yy10: 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

214 
{ goto bad_chars; } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

215 
yy11: 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

216 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

217 
if((yych = *YYCURSOR) <= '/') goto yy12; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

218 
if(yych <= '9') goto yy179; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

219 
yy12: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

220 
{ RET('.'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

221 
yy13: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

222 
yyaccept = 1; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

223 
yych = *(YYMARKER = ++YYCURSOR); 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

224 
if(yych == 0x0A) goto yy10; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

225 
if(yych == 0x0D) goto yy10; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

226 
goto yy170; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

227 
yy14: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

228 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

229 
if((yych = *YYCURSOR) <= '<') goto yy15; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

230 
if(yych <= '=') goto yy163; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

231 
if(yych <= '>') goto yy165; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

232 
yy15: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

233 
{ RET('>'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

234 
yy16: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

235 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

236 
if((yych = *YYCURSOR) <= ';') goto yy17; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

237 
if(yych <= '<') goto yy159; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

238 
if(yych <= '=') goto yy157; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

239 
yy17: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

240 
{ RET('<'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

241 
yy18: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

242 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

243 
if((yych = *YYCURSOR) == '+') goto yy153; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

244 
if(yych == '=') goto yy155; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

245 
{ RET('+'); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

246 
yy20: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

247 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

248 
if((yych = *YYCURSOR) == '') goto yy149; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

249 
if(yych == '=') goto yy151; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

250 
{ RET(''); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

251 
yy22: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

252 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

253 
if((yych = *YYCURSOR) == '=') goto yy147; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

254 
{ RET('*'); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

255 
yy24: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

256 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

257 
if((yych = *YYCURSOR) == '=') goto yy145; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

258 
{ RET('%'); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

259 
yy26: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

260 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

261 
if((yych = *YYCURSOR) == '=') goto yy143; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

262 
{ RET('^'); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

263 
yy28: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

264 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

265 
if((yych = *YYCURSOR) == '&') goto yy139; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

266 
if(yych == '=') goto yy141; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

267 
{ RET('&'); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

268 
yy30: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

269 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

270 
if((yych = *YYCURSOR) == '=') goto yy137; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

271 
if(yych == '') goto yy135; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

272 
{ RET(''); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

273 
yy32: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

274 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

275 
if((yych = *YYCURSOR) == '=') goto yy133; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

276 
{ RET('='); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

277 
yy34: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

278 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

279 
if((yych = *YYCURSOR) == '=') goto yy131; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

280 
{ RET('!'); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

281 
yy36: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

282 
yyaccept = 2; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

283 
yych = *(YYMARKER = ++YYCURSOR); 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

284 
if(yych <= 'c') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

285 
if(yych <= 0x1F) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

286 
if(yych == 0x09) goto yy72; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

287 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

288 
if(yych <= ' ') goto yy72; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

289 
if(yych == '#') goto yy79; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

290 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

291 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

292 
if(yych <= 'k') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

293 
if(yych <= 'e') goto yy72; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

294 
if(yych == 'i') goto yy72; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

295 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

296 
if(yych <= 'l') goto yy72; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

297 
if(yych == 'u') goto yy72; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

298 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

299 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

300 
yy37: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

301 
{ RET('#'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

302 
yy38: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

303 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

304 
{ RET('('); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

305 
yy40: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

306 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

307 
{ RET(')'); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

308 
yy42: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

309 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

310 
{ RET('['); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

311 
yy44: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

312 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

313 
{ RET(']'); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

314 
yy46: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

315 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

316 
{ RET(','); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

317 
yy48: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

318 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

319 
{ RET('~'); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

320 
yy50: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

321 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

322 
{ RET(':'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

323 
yy52: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

324 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

325 
{ RET(';'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

326 
yy54: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

327 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

328 
{ RET('{'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

329 
yy56: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

330 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

331 
{ RET('}'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

332 
yy58: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

333 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

334 
{ RET('?'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

335 
yy60: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

336 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

337 
{ RET('\\'); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

338 
yy62: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

339 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

340 
yych = *YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

341 
goto yy70; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

342 
yy63: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

343 
{ goto scanner_loop; } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

344 
yy64: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

345 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

346 
yy65: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

347 
{ s>line++; RET('\n'); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

348 
yy66: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

349 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

350 
if(yych == 0x0A) goto yy68; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

351 
goto yy65; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

352 
yy67: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

353 
yych = *++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

354 
goto yy10; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

355 
yy68: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

356 
yych = *++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

357 
goto yy65; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

358 
yy69: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

359 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

360 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

361 
yych = *YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

362 
yy70: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

363 
if(yych <= 0x0A) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

364 
if(yych == 0x09) goto yy69; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

365 
goto yy63; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

366 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

367 
if(yych <= 0x0C) goto yy69; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

368 
if(yych == ' ') goto yy69; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

369 
goto yy63; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

370 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

371 
yy71: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

372 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

373 
if((YYLIMIT  YYCURSOR) < 7) YYFILL(7); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

374 
yych = *YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

375 
yy72: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

376 
if(yych <= 'e') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

377 
if(yych <= 0x1F) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

378 
if(yych == 0x09) goto yy71; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

379 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

380 
if(yych <= ' ') goto yy71; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

381 
if(yych <= 'c') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

382 
if(yych <= 'd') goto yy77; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

383 
goto yy74; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

384 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

385 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

386 
if(yych <= 'k') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

387 
if(yych == 'i') goto yy75; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

388 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

389 
if(yych <= 'l') goto yy78; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

390 
if(yych == 'u') goto yy76; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

391 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

392 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

393 
yy73: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

394 
YYCURSOR = YYMARKER; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

395 
if(yyaccept <= 2) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

396 
if(yyaccept <= 1) { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

397 
if(yyaccept <= 0) { 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

398 
goto yy7; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

399 
} else { 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

400 
goto yy10; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

401 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

402 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

403 
goto yy37; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

404 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

405 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

406 
if(yyaccept <= 3) { 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

407 
goto yy98; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

408 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

409 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

410 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

411 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

412 
yy74: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

413 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

414 
if(yych <= 'm') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

415 
if(yych == 'l') goto yy114; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

416 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

417 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

418 
if(yych <= 'n') goto yy115; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

419 
if(yych == 'r') goto yy116; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

420 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

421 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

422 
yy75: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

423 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

424 
if(yych == 'f') goto yy97; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

425 
if(yych == 'n') goto yy96; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

426 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

427 
yy76: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

428 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

429 
if(yych == 'n') goto yy91; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

430 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

431 
yy77: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

432 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

433 
if(yych == 'e') goto yy85; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

434 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

435 
yy78: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

436 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

437 
if(yych == 'i') goto yy81; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

438 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

439 
yy79: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

440 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

441 
{ RET(TOKEN_HASHHASH); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

442 
yy81: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

443 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

444 
if(yych != 'n') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

445 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

446 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

447 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

448 
{ RET(TOKEN_PP_LINE); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

449 
yy85: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

450 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

451 
if(yych != 'f') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

452 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

453 
if(yych != 'i') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

454 
yych = *++YYCURSOR; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

455 
if(yych != 'n') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

456 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

457 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

458 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

459 
{ RET(TOKEN_PP_DEFINE); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

460 
yy91: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

461 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

462 
if(yych != 'd') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

463 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

464 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

465 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

466 
if(yych != 'f') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

467 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

468 
{ RET(TOKEN_PP_UNDEF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

469 
yy96: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

470 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

471 
if(yych == 'c') goto yy108; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

472 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

473 
yy97: 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

474 
yyaccept = 3; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

475 
yych = *(YYMARKER = ++YYCURSOR); 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

476 
if(yych == 'd') goto yy100; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

477 
if(yych == 'n') goto yy99; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

478 
yy98: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

479 
{ RET(TOKEN_PP_IF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

480 
yy99: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

481 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

482 
if(yych == 'd') goto yy104; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

483 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

484 
yy100: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

485 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

486 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

487 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

488 
if(yych != 'f') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

489 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

490 
{ RET(TOKEN_PP_IFDEF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

491 
yy104: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

492 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

493 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

494 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

495 
if(yych != 'f') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

496 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

497 
{ RET(TOKEN_PP_IFNDEF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

498 
yy108: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

499 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

500 
if(yych != 'l') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

501 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

502 
if(yych != 'u') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

503 
yych = *++YYCURSOR; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

504 
if(yych != 'd') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

505 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

506 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

507 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

508 
{ RET(TOKEN_PP_INCLUDE); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

509 
yy114: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

510 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

511 
if(yych == 'i') goto yy125; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

512 
if(yych == 's') goto yy126; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

513 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

514 
yy115: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

515 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

516 
if(yych == 'd') goto yy121; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

517 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

518 
yy116: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

519 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

520 
if(yych != 'r') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

521 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

522 
if(yych != 'o') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

523 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

524 
if(yych != 'r') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

525 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

526 
{ RET(TOKEN_PP_ERROR); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

527 
yy121: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

528 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

529 
if(yych != 'i') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

530 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

531 
if(yych != 'f') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

532 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

533 
{ RET(TOKEN_PP_ENDIF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

534 
yy125: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

535 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

536 
if(yych == 'f') goto yy129; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

537 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

538 
yy126: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

539 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

540 
if(yych != 'e') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

541 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

542 
{ RET(TOKEN_PP_ELSE); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

543 
yy129: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

544 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

545 
{ RET(TOKEN_PP_ELIF); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

546 
yy131: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

547 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

548 
{ RET(TOKEN_NEQ); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

549 
yy133: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

550 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

551 
{ RET(TOKEN_EQL); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

552 
yy135: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

553 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

554 
{ RET(TOKEN_OROR); } 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

555 
yy137: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

556 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

557 
{ RET(TOKEN_ORASSIGN); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

558 
yy139: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

559 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

560 
{ RET(TOKEN_ANDAND); } 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

561 
yy141: 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

562 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

563 
{ RET(TOKEN_ANDASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

564 
yy143: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

565 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

566 
{ RET(TOKEN_XORASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

567 
yy145: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

568 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

569 
{ RET(TOKEN_MODASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

570 
yy147: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

571 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

572 
{ RET(TOKEN_MULTASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

573 
yy149: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

574 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

575 
{ RET(TOKEN_DECREMENT); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

576 
yy151: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

577 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

578 
{ RET(TOKEN_SUBASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

579 
yy153: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

580 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

581 
{ RET(TOKEN_INCREMENT); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

582 
yy155: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

583 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

584 
{ RET(TOKEN_ADDASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

585 
yy157: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

586 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

587 
{ RET(TOKEN_LEQ); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

588 
yy159: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

589 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

590 
if((yych = *YYCURSOR) == '=') goto yy161; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

591 
{ RET(TOKEN_LSHIFT); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

592 
yy161: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

593 
++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

594 
{ RET(TOKEN_LSHIFTASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

595 
yy163: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

596 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

597 
{ RET(TOKEN_GEQ); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

598 
yy165: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

599 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

600 
if((yych = *YYCURSOR) == '=') goto yy167; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

601 
{ RET(TOKEN_RSHIFT); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

602 
yy167: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

603 
++YYCURSOR; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

604 
{ RET(TOKEN_RSHIFTASSIGN); } 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

605 
yy169: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

606 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

607 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

608 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

609 
yy170: 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

610 
if(yych <= 0x0D) { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

611 
if(yych == 0x0A) goto yy73; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

612 
if(yych <= 0x0C) goto yy169; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

613 
goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

614 
} else { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

615 
if(yych <= '"') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

616 
if(yych <= '!') goto yy169; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

617 
goto yy172; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

618 
} else { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

619 
if(yych != '\\') goto yy169; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

620 
} 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

621 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

622 
yy171: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

623 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

624 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

625 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

626 
if(yych <= 'b') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

627 
if(yych <= '7') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

628 
if(yych <= '&') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

629 
if(yych == '"') goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

630 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

631 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

632 
if(yych <= '\'') goto yy169; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

633 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

634 
goto yy175; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

635 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

636 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

637 
if(yych <= '[') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

638 
if(yych == '?') goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

639 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

640 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

641 
if(yych <= '\\') goto yy169; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

642 
if(yych <= '`') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

643 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

644 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

645 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

646 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

647 
if(yych <= 'r') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

648 
if(yych <= 'm') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

649 
if(yych == 'f') goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

650 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

651 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

652 
if(yych <= 'n') goto yy169; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

653 
if(yych <= 'q') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

654 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

655 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

656 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

657 
if(yych <= 'u') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

658 
if(yych == 't') goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

659 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

660 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

661 
if(yych <= 'v') goto yy169; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

662 
if(yych == 'x') goto yy174; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

663 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

664 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

665 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

666 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

667 
yy172: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

668 
++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

669 
{ RET(TOKEN_STRING_LITERAL); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

670 
yy174: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

671 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

672 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

673 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

674 
if(yych <= '@') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

675 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

676 
if(yych <= '9') goto yy177; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

677 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

678 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

679 
if(yych <= 'F') goto yy177; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

680 
if(yych <= '`') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

681 
if(yych <= 'f') goto yy177; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

682 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

683 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

684 
yy175: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

685 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

686 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

687 
yych = *YYCURSOR; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

688 
if(yych <= '!') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

689 
if(yych <= 0x0A) { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

690 
if(yych <= 0x09) goto yy169; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

691 
goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

692 
} else { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

693 
if(yych == 0x0D) goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

694 
goto yy169; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

695 
} 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

696 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

697 
if(yych <= '7') { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

698 
if(yych <= '"') goto yy172; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

699 
if(yych <= '/') goto yy169; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

700 
goto yy175; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

701 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

702 
if(yych == '\\') goto yy171; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

703 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

704 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

705 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

706 
yy177: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

707 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

708 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

709 
yych = *YYCURSOR; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

710 
if(yych <= '/') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

711 
if(yych <= 0x0C) { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

712 
if(yych == 0x0A) goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

713 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

714 
} else { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

715 
if(yych <= 0x0D) goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

716 
if(yych == '"') goto yy172; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

717 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

718 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

719 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

720 
if(yych <= '[') { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

721 
if(yych <= '9') goto yy177; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

722 
if(yych <= '@') goto yy169; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

723 
if(yych <= 'F') goto yy177; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

724 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

725 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

726 
if(yych <= '\\') goto yy171; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

727 
if(yych <= '`') goto yy169; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

728 
if(yych <= 'f') goto yy177; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

729 
goto yy169; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

730 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

731 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

732 
yy179: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

733 
yyaccept = 4; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

734 
YYMARKER = ++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

735 
if((YYLIMIT  YYCURSOR) < 3) YYFILL(3); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

736 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

737 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

738 
if(yych <= 'D') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

739 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

740 
if(yych <= '9') goto yy179; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

741 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

742 
if(yych <= 'E') goto yy182; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

743 
if(yych <= 'F') goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

744 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

745 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

746 
if(yych <= 'e') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

747 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

748 
if(yych >= 'e') goto yy182; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

749 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

750 
if(yych <= 'f') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

751 
if(yych == 'l') goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

752 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

753 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

754 
yy181: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

755 
{ RET(TOKEN_FLOAT_LITERAL); } 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

756 
yy182: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

757 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

758 
if(yych <= ',') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

759 
if(yych == '+') goto yy184; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

760 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

761 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

762 
if(yych <= '') goto yy184; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

763 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

764 
if(yych <= '9') goto yy185; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

765 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

766 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

767 
yy183: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

768 
yych = *++YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

769 
goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

770 
yy184: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

771 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

772 
if(yych <= '/') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

773 
if(yych >= ':') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

774 
yy185: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

775 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

776 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

777 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

778 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

779 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

780 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

781 
goto yy185; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

782 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

783 
if(yych == 'F') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

784 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

785 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

786 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

787 
if(yych <= 'f') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

788 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

789 
if(yych <= 'e') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

790 
goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

791 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

792 
if(yych == 'l') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

793 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

794 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

795 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

796 
yy187: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

797 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

798 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

799 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

800 
yy188: 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

801 
if(yych <= 0x0D) { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

802 
if(yych == 0x0A) goto yy73; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

803 
if(yych <= 0x0C) goto yy187; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

804 
goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

805 
} else { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

806 
if(yych <= '\'') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

807 
if(yych <= '&') goto yy187; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

808 
goto yy190; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

809 
} else { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

810 
if(yych != '\\') goto yy187; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

811 
} 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

812 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

813 
yy189: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

814 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

815 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

816 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

817 
if(yych <= 'b') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

818 
if(yych <= '7') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

819 
if(yych <= '&') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

820 
if(yych == '"') goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

821 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

822 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

823 
if(yych <= '\'') goto yy187; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

824 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

825 
goto yy192; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

826 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

827 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

828 
if(yych <= '[') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

829 
if(yych == '?') goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

830 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

831 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

832 
if(yych <= '\\') goto yy187; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

833 
if(yych <= '`') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

834 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

835 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

836 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

837 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

838 
if(yych <= 'r') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

839 
if(yych <= 'm') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

840 
if(yych == 'f') goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

841 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

842 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

843 
if(yych <= 'n') goto yy187; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

844 
if(yych <= 'q') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

845 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

846 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

847 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

848 
if(yych <= 'u') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

849 
if(yych == 't') goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

850 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

851 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

852 
if(yych <= 'v') goto yy187; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

853 
if(yych == 'x') goto yy191; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

854 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

855 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

856 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

857 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

858 
yy190: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

859 
yych = *++YYCURSOR; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

860 
goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

861 
yy191: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

862 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

863 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

864 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

865 
if(yych <= '@') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

866 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

867 
if(yych <= '9') goto yy194; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

868 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

869 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

870 
if(yych <= 'F') goto yy194; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

871 
if(yych <= '`') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

872 
if(yych <= 'f') goto yy194; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

873 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

874 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

875 
yy192: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

876 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

877 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

878 
yych = *YYCURSOR; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

879 
if(yych <= '&') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

880 
if(yych <= 0x0A) { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

881 
if(yych <= 0x09) goto yy187; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

882 
goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

883 
} else { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

884 
if(yych == 0x0D) goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

885 
goto yy187; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

886 
} 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

887 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

888 
if(yych <= '7') { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

889 
if(yych <= '\'') goto yy190; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

890 
if(yych <= '/') goto yy187; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

891 
goto yy192; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

892 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

893 
if(yych == '\\') goto yy189; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

894 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

895 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

896 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

897 
yy194: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

898 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

899 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

900 
yych = *YYCURSOR; 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

901 
if(yych <= '/') { 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

902 
if(yych <= 0x0C) { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

903 
if(yych == 0x0A) goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

904 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

905 
} else { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

906 
if(yych <= 0x0D) goto yy73; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

907 
if(yych == '\'') goto yy190; 
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

908 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

909 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

910 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

911 
if(yych <= '[') { 
600
f42d58194dc1
Updated build of mojoshader_lexer.c ...
Ryan C. Gordon <icculus@icculus.org>
parents:
584
diff
changeset

912 
if(yych <= '9') goto yy194; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

913 
if(yych <= '@') goto yy187; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

914 
if(yych <= 'F') goto yy194; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

915 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

916 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

917 
if(yych <= '\\') goto yy189; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

918 
if(yych <= '`') goto yy187; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

919 
if(yych <= 'f') goto yy194; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

920 
goto yy187; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

921 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

922 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

923 
yy196: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

924 
yyaccept = 4; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

925 
yych = *(YYMARKER = ++YYCURSOR); 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

926 
if(yych == 'E') goto yy207; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

927 
if(yych == 'e') goto yy207; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

928 
goto yy206; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

929 
yy197: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

930 
yyaccept = 0; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

931 
YYMARKER = ++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

932 
if((YYLIMIT  YYCURSOR) < 4) YYFILL(4); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

933 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

934 
yy198: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

935 
if(yych <= 'L') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

936 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

937 
if(yych == '.') goto yy196; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

938 
if(yych <= '/') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

939 
goto yy197; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

940 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

941 
if(yych == 'E') goto yy199; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

942 
if(yych <= 'K') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

943 
goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

944 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

945 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

946 
if(yych <= 'e') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

947 
if(yych == 'U') goto yy200; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

948 
if(yych <= 'd') goto yy7; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

949 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

950 
if(yych <= 'l') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

951 
if(yych <= 'k') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

952 
goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

953 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

954 
if(yych == 'u') goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

955 
goto yy7; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

956 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

957 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

958 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

959 
yy199: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

960 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

961 
if(yych <= ',') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

962 
if(yych == '+') goto yy202; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

963 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

964 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

965 
if(yych <= '') goto yy202; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

966 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

967 
if(yych <= '9') goto yy203; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

968 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

969 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

970 
yy200: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

971 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

972 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

973 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

974 
if(yych <= 'U') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

975 
if(yych == 'L') goto yy200; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

976 
if(yych <= 'T') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

977 
goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

978 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

979 
if(yych <= 'l') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

980 
if(yych <= 'k') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

981 
goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

982 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

983 
if(yych == 'u') goto yy200; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

984 
goto yy7; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

985 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

986 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

987 
yy202: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

988 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

989 
if(yych <= '/') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

990 
if(yych >= ':') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

991 
yy203: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

992 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

993 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

994 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

995 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

996 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

997 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

998 
goto yy203; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

999 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1000 
if(yych == 'F') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1001 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1002 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1003 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1004 
if(yych <= 'f') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1005 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1006 
if(yych <= 'e') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1007 
goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1008 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1009 
if(yych == 'l') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1010 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1011 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1012 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1013 
yy205: 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1014 
yyaccept = 4; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1015 
YYMARKER = ++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1016 
if((YYLIMIT  YYCURSOR) < 3) YYFILL(3); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1017 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1018 
yy206: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1019 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1020 
if(yych <= 'D') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1021 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1022 
if(yych <= '9') goto yy205; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1023 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1024 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1025 
if(yych <= 'E') goto yy211; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1026 
if(yych <= 'F') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1027 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1028 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1029 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1030 
if(yych <= 'e') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1031 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1032 
if(yych <= 'd') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1033 
goto yy211; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1034 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1035 
if(yych <= 'f') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1036 
if(yych == 'l') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1037 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1038 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1039 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1040 
yy207: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1041 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1042 
if(yych <= ',') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1043 
if(yych != '+') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1044 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1045 
if(yych <= '') goto yy208; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1046 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1047 
if(yych <= '9') goto yy209; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1048 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1049 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1050 
yy208: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1051 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1052 
if(yych <= '/') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1053 
if(yych >= ':') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1054 
yy209: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1055 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1056 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1057 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1058 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1059 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1060 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1061 
goto yy209; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1062 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1063 
if(yych == 'F') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1064 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1065 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1066 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1067 
if(yych <= 'f') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1068 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1069 
if(yych <= 'e') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1070 
goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1071 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1072 
if(yych == 'l') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1073 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1074 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1075 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1076 
yy211: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1077 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1078 
if(yych <= ',') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1079 
if(yych != '+') goto yy73; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1080 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1081 
if(yych <= '') goto yy212; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1082 
if(yych <= '/') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1083 
if(yych <= '9') goto yy213; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1084 
goto yy73; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1085 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1086 
yy212: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1087 
yych = *++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1088 
if(yych <= '/') goto yy73; 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1089 
if(yych >= ':') goto yy73; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1090 
yy213: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1091 
++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1092 
if(YYLIMIT == YYCURSOR) YYFILL(1); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1093 
yych = *YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1094 
if(yych <= 'K') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1095 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1096 
if(yych <= '/') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1097 
goto yy213; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1098 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1099 
if(yych == 'F') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1100 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1101 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1102 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1103 
if(yych <= 'f') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1104 
if(yych <= 'L') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1105 
if(yych <= 'e') goto yy181; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1106 
goto yy183; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1107 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1108 
if(yych == 'l') goto yy183; 
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1109 
goto yy181; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1110 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1111 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1112 
yy215: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1113 
yyaccept = 0; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1114 
YYMARKER = ++YYCURSOR; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1115 
if((YYLIMIT  YYCURSOR) < 4) YYFILL(4); 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1116 
yych = *YYCURSOR; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1117 
yy216: 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1118 
if(yych <= 'L') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1119 
if(yych <= '9') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1120 
if(yych == '.') goto yy196; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1121 
if(yych <= '/') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1122 
goto yy215; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1123 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1124 
if(yych == 'E') goto yy199; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1125 
if(yych <= 'K') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1126 
goto yy222; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1127 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1128 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1129 
if(yych <= 'e') { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1130 
if(yych == 'U') goto yy222; 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1131 
if(yych <= 'd') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1132 
goto yy199; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1133 
} else { 
580
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1134 
if(yych <= 'l') { 
a7b038eb688c
Updated re2cgenerated lexer code.
Ryan C. Gordon <icculus@icculus.org>
parents:
555
diff
changeset

1135 
if(yych <= 'k') goto yy7; 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1136 
goto yy222; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1137 
} else { 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1138 
if(yych == 'u') goto yy222; 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1139 
goto yy7; 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1140 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1141 
} 
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1142 
} 
584
9aea8877564d
Updated lexer for HLSL.
Ryan C. Gordon <icculus@icculus.org>
parents:
580
diff
changeset

1143 
yy217: 
555
940821555fda
Initial work on preprocessor. Not yet complete!
Ryan C. Gordon <icculus@icculus.org>
parents:
diff
changeset

1144 
yych = *++YYCURSOR; 
580 