1 // Copyright 2018 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_TORQUE_TORQUE_PARSER_H_ 6 #define V8_TORQUE_TORQUE_PARSER_H_ 7 8 #include "src/torque/ast.h" 9 10 namespace v8 { 11 namespace internal { 12 namespace torque { 13 14 DECLARE_CONTEXTUAL_VARIABLE(CurrentAst, Ast); 15 16 // Adds the parsed input to {CurrentAst} 17 void ParseTorque(const std::string& input); 18 19 } // namespace torque 20 } // namespace internal 21 } // namespace v8 22 23 #endif // V8_TORQUE_TORQUE_PARSER_H_ 24