diff options
Diffstat (limited to 'deps/v8/src/torque/torque-parser.h')
-rw-r--r-- | deps/v8/src/torque/torque-parser.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/v8/src/torque/torque-parser.h b/deps/v8/src/torque/torque-parser.h new file mode 100644 index 00000000000..99ac7cb75c3 --- /dev/null +++ b/deps/v8/src/torque/torque-parser.h @@ -0,0 +1,23 @@ +// Copyright 2018 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef V8_TORQUE_TORQUE_PARSER_H_ +#define V8_TORQUE_TORQUE_PARSER_H_ + +#include "src/torque/ast.h" + +namespace v8 { +namespace internal { +namespace torque { + +DECLARE_CONTEXTUAL_VARIABLE(CurrentAst, Ast); + +// Adds the parsed input to {CurrentAst} +void ParseTorque(const std::string& input); + +} // namespace torque +} // namespace internal +} // namespace v8 + +#endif // V8_TORQUE_TORQUE_PARSER_H_ |