| 1 |
// This file is part of GCC. |
| 2 |
|
| 3 |
// GCC is free software; you can redistribute it and/or modify it under |
| 4 |
// the terms of the GNU General Public License as published by the Free |
| 5 |
// Software Foundation; either version 3, or (at your option) any later |
| 6 |
// version. |
| 7 |
|
| 8 |
// GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
| 9 |
// WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 11 |
// for more details. |
| 12 |
|
| 13 |
// You should have received a copy of the GNU General Public License |
| 14 |
// along with GCC; see the file COPYING3. If not see |
| 15 |
// <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
#ifndef RUST_TOKEN_CONVERTER_H |
| 18 |
#define RUST_TOKEN_CONVERTER_H |
| 19 |
|
| 20 |
#include "rust-system.h" |
| 21 |
#include "rust-token.h" |
| 22 |
#include "libproc_macro_internal/proc_macro.h" |
| 23 |
|
| 24 |
namespace Rust { |
| 25 |
|
| 26 |
ProcMacro::TokenStream |
| 27 |
convert (const std::vector<const_TokenPtr> &tokens); |
| 28 |
|
| 29 |
std::vector<const_TokenPtr> |
| 30 |
convert (const ProcMacro::TokenStream &ts); |
| 31 |
|
| 32 |
ProcMacro::Literal |
| 33 |
convert_literal (const_TokenPtr lit); |
| 34 |
|
| 35 |
} // namespace Rust |
| 36 |
|
| 37 |
#endif /* ! RUST_TOKEN_CONVERTER_H */ |