Lines Matching defs:lex

57 static char lex[256];
81 #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT)
82 #define IS_WHITESPACE(c) (lex[c] == LEX_IS_WHITESPACE)
83 #define IS_LINE_SEPARATOR(c) (lex[c] == LEX_IS_LINE_SEPARATOR)
84 #define IS_PARALLEL_SEPARATOR(c) (lex[c] == LEX_IS_PARALLEL_SEPARATOR)
85 #define IS_COMMENT(c) (lex[c] == LEX_IS_COMMENT_START)
86 #define IS_LINE_COMMENT(c) (lex[c] == LEX_IS_LINE_COMMENT_START)
87 #define IS_NEWLINE(c) (lex[c] == LEX_IS_NEWLINE)
101 lex[' '] = LEX_IS_WHITESPACE;
102 lex['\t'] = LEX_IS_WHITESPACE;
103 lex['\r'] = LEX_IS_WHITESPACE;
104 lex['\n'] = LEX_IS_NEWLINE;
105 lex[':'] = LEX_IS_COLON;
113 lex['"'] = LEX_IS_STRINGQUOTE;
117 lex['\''] = LEX_IS_ONECHAR_QUOTE;
121 lex['\''] = LEX_IS_STRINGQUOTE;
131 lex[(unsigned char) *p] = LEX_IS_SYMBOL_COMPONENT;
134 lex[c] = LEX_IS_SYMBOL_COMPONENT;
143 lex[(unsigned char) *p] = LEX_IS_SYMBOL_COMPONENT;
151 lex[(unsigned char) *p] = LEX_IS_COMMENT_START;
154 lex[(unsigned char) *p] = LEX_IS_LINE_COMMENT_START;
157 lex[(unsigned char) *p] = LEX_IS_LINE_SEPARATOR;
163 lex[(unsigned char) *p] = LEX_IS_PARALLEL_SEPARATOR;
168 if (lex['/'] == 0)
169 lex['/'] = LEX_IS_TWOCHAR_COMMENT_1ST;
174 lex['\''] = LEX_IS_STRINGQUOTE;
175 lex[';'] = LEX_IS_COMMENT_START;
176 lex['*'] = LEX_IS_LINE_COMMENT_START;
179 lex['!'] = LEX_IS_LINE_COMMENT_START;
184 lex['-'] = LEX_IS_DOUBLEDASH_1ST;
187 lex['|'] = LEX_IS_DOUBLEBAR_1ST;
191 lex['-'] = LEX_IS_SYMBOL_COMPONENT;
759 && lex[ch] == LEX_IS_WHITESPACE)
767 || (lex[ch] != LEX_IS_WHITESPACE
768 && lex[ch] != LEX_IS_NEWLINE))
802 switch (lex[ch])
824 if (lex[ch] == LEX_IS_COLON)
860 && lex[ch] == LEX_IS_COLON
1304 type = lex[ch2];