Remake
|
Enumerations | |
enum | { Unexpected = 0 , Word = 1 << 1 , Colon = 1 << 2 , Equal = 1 << 3 , Dollarpar = 1 << 4 , Rightpar = 1 << 5 , Comma = 1 << 6 , Plusequal = 1 << 7 , Pipe = 1 << 8 } |
Functions | |
static void | skip_spaces (std::istream &in) |
static void | skip_empty (std::istream &in) |
static bool | skip_eol (std::istream &in, bool multi=false) |
static int | expect_token (std::istream &in, int mask) |
static std::string | read_word (std::istream &in, bool detect_equal=true) |
anonymous enum |
Enumerator | |
---|---|
Unexpected | |
Word | |
Colon | |
Equal | |
Dollarpar | |
Rightpar | |
Comma | |
Plusequal | |
Pipe |
Definition at line 1055 of file remake.cpp.
|
static |
Skip spaces and peek at the next token. If it is one of mask, skip it (if it is not Word) and return it.
Definition at line 1074 of file remake.cpp.
Referenced by addprefix_generator::addprefix_generator(), addsuffix_generator::addsuffix_generator(), load_rule(), load_rules(), main(), addprefix_generator::next(), addsuffix_generator::next(), and input_generator::next().
|
static |
Read a (possibly quoted) word.
Definition at line 1120 of file remake.cpp.
Referenced by load_rule(), load_rules(), main(), and input_generator::next().
|
static |
Skip empty lines.
Definition at line 1034 of file remake.cpp.
Referenced by load_dependencies(), load_rules(), and skip_eol().
|
static |
Skip end of line. If multi is true, skip the following empty lines too.
Definition at line 1045 of file remake.cpp.
Referenced by expect_token(), load_rule(), and load_rules().
|
static |
Skip spaces.
Definition at line 1024 of file remake.cpp.
Referenced by expect_token(), get_function(), and load_rule().