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) |
Enumerator | |
---|---|
Unexpected | |
Word | |
Colon | |
Equal | |
Dollarpar | |
Rightpar | |
Comma | |
Plusequal | |
Pipe |
Definition at line 1057 of file remake.cpp.
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 1076 of file remake.cpp.
Referenced by addprefix_generator::addprefix_generator(), addsuffix_generator::addsuffix_generator(), load_rule(), load_rules(), main(), input_generator::next(), addprefix_generator::next(), and addsuffix_generator::next().
Read a (possibly quoted) word.
Definition at line 1122 of file remake.cpp.
Referenced by load_rule(), load_rules(), main(), and input_generator::next().
Skip empty lines.
Definition at line 1036 of file remake.cpp.
Referenced by load_dependencies(), load_rules(), and skip_eol().
Skip end of line. If multi is true, skip the following empty lines too.
Definition at line 1047 of file remake.cpp.
Referenced by expect_token(), load_rule(), and load_rules().
Skip spaces.
Definition at line 1026 of file remake.cpp.
Referenced by expect_token(), get_function(), and load_rule().