Home | History | Annotate | Download | only in gold

Lines Matching refs:Lex

199 class Lex
217 Lex(const char* input_string, size_t input_length, int parsing_token)
233 Lex::Mode
243 Lex(const Lex&);
244 Lex& operator=(const Lex&);
303 { return Lex::can_start_number(*c) ? c + 1 : NULL; }
338 const char* (Lex::*can_continue_fn)(const char*),
369 Lex::read_file(Input_file* input_file, std::string* contents)
400 Lex::can_start_name(char c, char c2)
441 Lex::can_continue_name(const char* c)
505 Lex::can_start_hex(char c1, char c2, char c3)
515 Lex::can_continue_hex(const char* c)
533 Lex::can_start_number(char c)
551 Lex::three_char_operator(char c1, char c2, char c3)
574 Lex::two_char_operator(char c1, char c2)
635 Lex::one_char_operator(char c1)
672 Lex::skip_c_comment(const char** pp)
698 Lex::skip_line_comment(const char** pp)
720 Lex::gather_token(Token::Classification classification,
721 const char* (Lex::*can_continue_fn)(const char*),
743 Lex::gather_quoted_string(const char** pp)
761 Lex::get_token(const char** pp)
812 &Lex::can_continue_name,
827 &Lex::can_continue_hex,
830 if (Lex::can_start_number(p[0]))
832 &Lex::can_continue_number,
837 int opcode = Lex::three_char_operator(p[0], p[1], p[2]);
844 opcode = Lex::two_char_operator(p[0], p[1]);
851 opcode = Lex::one_char_operator(p[0]);
865 Lex::next_token()
1248 Lex* lex,
1258 lex_(lex), lineno_(0), charpos_(0), lex_mode_stack_(), inputs_(NULL),
1261 // We start out processing C symbols in the default lex mode.
1263 this->lex_mode_stack_.push_back(lex->mode());
1346 push_lex_mode(Lex::Mode mode)
1362 Lex::Mode
1439 Lex* lex_;
1445 std::vector<Lex::Mode> lex_mode_stack_;
1470 Lex::read_file(input_file, &input_string);
1472 Lex lex(input_string.c_str(), input_string.length(), PARSING_LINKER_SCRIPT);
1492 &lex,
1552 int first_token, Lex::Mode lex_mode)
1584 Lex::read_file(&input_file, &input_string);
1586 Lex lex(input_string.c_str(), input_string.length(), first_token);
1587 lex.set_mode(lex_mode);
1591 first_token == Lex::DYNAMIC_LIST,
1596 &lex,
1619 PARSING_LINKER_SCRIPT, Lex::LINKER_SCRIPT);
1630 PARSING_VERSION_SCRIPT, Lex::VERSION_SCRIPT);
1641 PARSING_DYNAMIC_LIST, Lex::DYNAMIC_LIST);
1650 Lex lex(definition, strlen(definition), PARSING_DEFSYM);
1651 lex.set_mode(Lex::EXPRESSION);
1657 false, false, NULL, this, &lex, false, NULL);
1694 // parser. We construct one global object for each lex mode with
2592 case Lex::LINKER_SCRIPT:
2595 case Lex::VERSION_SCRIPT:
2598 case Lex::DYNAMIC_LIST:
2905 closure->push_lex_mode(Lex::EXPRESSION);
2918 closure->push_lex_mode(Lex::VERSION_SCRIPT);
3376 first_token, Lex::LINKER_SCRIPT);