coan 4.2.4
|
![]() |
Files | |
file | lexicon.c |
file | lexicon.h |
Defines | |
#define | IF "if" |
#define | IFDEF "ifdef" |
#define | IFNDEF "ifndef" |
#define | ELSE "else" |
#define | ELIF "elif" |
#define | ENDIF "endif" |
#define | DEFINE "define" |
#define | UNDEF "undef" |
#define | INCLUDE "include" |
#define | PRAGMA "pragma" |
#define | ERROR "error" |
#define | DEFINED "defined" |
#define | BOOLEAN_OR "||" |
#define | BOOLEAN_AND "&&" |
#define | BIT_OR "|" |
#define | BIT_XOR "^" |
#define | BIT_AND "&" |
#define | EQ "==" |
#define | NEQ "!=" |
#define | LE "<=" |
#define | GE ">=" |
#define | LESS "<" |
#define | GREATER ">" |
#define | LSHIFT "<<" |
#define | RSHIFT ">>" |
#define | ADD "+" |
#define | SUBTRACT "-" |
#define | MULTIPLY "*" |
#define | DIV "/" |
#define | MOD "%" |
Functions | |
bool | match_keyword (char const **ptxt, char const *keyword) |
bool | match_op (char const **ptxt, char const *op) |
#define ADD "+" |
#define BIT_AND "&" |
#define BIT_OR "|" |
#define BIT_XOR "^" |
#define BOOLEAN_AND "&&" |
#define BOOLEAN_OR "||" |
#define DEFINE "define" |
#define DEFINED "defined" |
#define ELIF "elif" |
#define ELSE "else" |
#define ENDIF "endif" |
#define ERROR "error" |
#define GE ">=" |
#define GREATER ">" |
#define IFDEF "ifdef" |
#define IFNDEF "ifndef" |
#define INCLUDE "include" |
#define LE "<=" |
#define LSHIFT "<<" |
#define MULTIPLY "*" |
#define PRAGMA "pragma" |
#define RSHIFT ">>" |
#define SUBTRACT "-" |
#define UNDEF "undef" |
bool match_keyword | ( | char const ** | ptxt, |
char const * | keyword | ||
) |
Say whether text in the line-buffer matches a preprocessor keyword
ptxt | On entry, a pointer to an address in the line buffer at which to match the keyword. On return, stores the address of the first byte in the line buffer not consumed in the matched text, if the text is an unambiguous occurrence of the keyword; otherwise unchanged. |
keyword | The keyword to be matched. |
keyword
; else false.Say whether text in the line-buffer matches a prepprocessor keyword
ptxt | On entry, a pointer to an address in the line buffer at which to match the keyword. On return, stores the address of the first byte in the line buffer not consumed by the in the matched text, if the text is an unambiguous occurrence of the keyword; otherwise unchanged. |
keyword | The keyword to be matched. |
keyword
; else false. Definition at line 97 of file lexicon.c.
References is_symbol_start_char(), and text_match().
Referenced by eval_unary(), and get_directive_type().
bool match_op | ( | char const ** | ptxt, |
char const * | op | ||
) |
Say whether a given operator occurs at a given line-buffer position.
ptxt | On entry, pointer to an address in line buffer. On return, if the operator is matched, stores the first line buffer address not consumed by the match; otherwise the entry value is unchanged. |
op | Pointer to an operator token to match. |
op
occurs at position txt
Definition at line 109 of file lexicon.c.
References chew_continuation().
Referenced by eval_table().