// 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. #include "src/torque/earley-parser.h" #include <optional> #include "test/unittests/test-utils.h" namespace v8 { namespace internal { namespace torque { namespace { template <int op(int, int)> std::optional<ParseResult> MakeBinop(ParseResultIterator* child_results) { … } int plus(int a, int b) { … } int minus(int a, int b) { … } int mul(int a, int b) { … } } // namespace struct SimpleArithmeticGrammar : Grammar { … }; TEST(EarleyParser, SimpleArithmetic) { … } } // namespace torque } // namespace internal } // namespace v8