Lexical Analyzer v0.1.0
 
Loading...
Searching...
No Matches
lexer_validation.h
Go to the documentation of this file.
1#ifndef LEXER_VALIDATION_H
2#define LEXER_VALIDATION_H
3
24
25#include "lexer_io.h"
26
27#define min(x, y) ((x) < (y) ? (x) : (y))
28#define max(x, y) ((x) > (y) ? (x) : (y))
29
30
44bool chk_keywd(const char *const value);
45
46
60bool chk_oprtr(const char *const value);
61
62
77bool chk_sprtr(const char value);
78
79
94bool chk_punct(const char *const value);
95
111bool chk_numlt(const char *const value);
112
113
129bool chk_flolt(const char *const value);
130
131
148bool chk_chrlt(const char *const value);
149
150
164bool chk_strlt(const char *const value);
165
166
183bool chk_idnfr(const char *const value);
184
185
201bool chk_prpop(const char *const value);
202 // End of TokenValidation group
204
205#endif
bool chk_idnfr(const char *const value)
Checks if the given value is a valid identifier.
bool chk_punct(const char *const value)
Checks if the given value is a punctuation character.
bool chk_flolt(const char *const value)
Checks if the given value is a valid floating-point literal.
bool chk_chrlt(const char *const value)
Checks if the given value is a valid character literal.
bool chk_sprtr(const char value)
Checks if the given character is a valid separator.
bool chk_keywd(const char *const value)
Checks if the given value is a C programming language keyword.
bool chk_strlt(const char *const value)
Checks if the given value is a valid string literal.
bool chk_prpop(const char *const value)
Checks if the given value is a preprocessor directive.
bool chk_numlt(const char *const value)
Checks if the given value is a valid numerical literal.
bool chk_oprtr(const char *const value)
Checks if the given value is a valid C operator.