Lines Matching refs:s
25 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc);
26 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc);
27 yy::parser::symbol_type make_HEX(const std::string &s, const yy::parser::location_type& loc);
28 yy::parser::symbol_type make_BINARY(const std::string &s, const yy::parser::location_type& loc);
227 yy::parser::symbol_type make_INT(const std::string &s, const yy::parser::location_type& loc)
230 long n = strtol (s.c_str(), NULL, 10);
232 throw yy::parser::syntax_error (loc, "integer is out of range: " + s);
236 yy::parser::symbol_type make_FLOAT(const std::string &s, const yy::parser::location_type& loc)
239 float n = strtof (s.c_str(), NULL);
243 yy::parser::symbol_type make_HEX(const std::string &s, const yy::parser::location_type& loc)
246 long n = strtol (s.c_str() + 2, NULL, 16);
248 throw yy::parser::syntax_error (loc, "hex is out of range: " + s);
252 yy::parser::symbol_type make_BINARY(const std::string &s, const yy::parser::location_type& loc)
255 long n = strtol (s.c_str()+2, NULL, 2);
257 throw yy::parser::syntax_error (loc, "binary is out of range: " + s);